/*
   DIES IST EINE AUTOMATISCH GENERIERTE DATEI. ALLE HÄNDISCH VORGENOMMENEN
   ÄNDERUNGEN AN DER DATEI WERDEN BEIM NÄCHSTEN GENERIEREN ÜBERSCHRIEBEN.
*/
@media screen and (max-width: 1000px) {
  body {
    background: none;
    margin: 0;
    width: 100%;
    height: auto;
  }
  body.noscroll {
    overflow: hidden;
  }

  #head {
    padding: 5px 0;
    margin: 0;
    font-size: 11px;
    line-height: 11px;
    width: 100%;
    overflow: hidden;
    background-color: #f9f9f9;
  }
  #head > *:not(#logo) {
    display: none;
  }
  #head #logo {
    position: relative;
    margin: 0 10px;
    line-height: 11px;
  }

  #rwd-menu-icon {
    display: block;
    background-image: url(../img/burger.svg);
    background-size: contain;
    background-position: center;
    width: 40px;
    height: 40px;
    position: absolute;
    right: 13px;
    top: 62px;
    z-index: 2;
    cursor: pointer;
  }

  #rwd-menu {
    display: block;
  }
  #rwd-menu #rwd-menu-layer {
    position: fixed;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.75);
    display: none;
  }
  #rwd-menu #rwd-menu-content {
    position: fixed;
    z-index: 3;
    background-color: #f9f9f9;
    font-size: 14px;
    top: 0;
    width: 400px;
    height: calc(100% - 2em);
    padding: 1em;
    right: 0;
    left: 100%;
    transition: left 0.5s ease-in-out, right 0.5s ease-in-out;
  }
  #rwd-menu #rwd-menu-content #rwd-menu-close {
    text-align: right;
  }
  #rwd-menu #rwd-menu-content #rwd-menu-close #rwd-menu-close-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("../img/link_intern.svg") no-repeat center center;
    background-size: contain;
    cursor: pointer;
  }
  #rwd-menu #rwd-menu-content ul + ul {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  #rwd-menu #rwd-menu-content a {
    display: inline-block;
    padding: 6px 8px 6px 20px;
    background-repeat: no-repeat;
    background-position-y: center;
  }
  #rwd-menu #rwd-menu-content a.qlink {
    color: #282828;
    text-transform: uppercase;
  }
  #rwd-menu #rwd-menu-content #user-info {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 8px 8px 35px;
    background-image: url("../img/user.svg");
    background-size: 30px 30px;
    background-position-y: center;
    background-repeat: no-repeat;
  }
  #rwd-menu.expanded #rwd-menu-layer {
    display: block;
  }
  #rwd-menu.expanded #rwd-menu-content {
    left: calc(100% - 400px - 2em);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  }

  #main {
    box-shadow: none;
    height: auto;
    min-height: 0;
    font-size: 14px;
    background: none;
  }
  #main #title {
    position: relative;
    font-size: 16px;
  }
  #main #title span:first-child {
    width: calc(100% - 75px);
    bottom: 0;
    position: absolute;
  }
  #main #title #title_logo {
    display: none;
  }
  #main #title.sticky {
    position: fixed;
    z-index: 1;
    top: 0;
    width: 100%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  }
  #main #app_message {
    padding: 0 !important;
  }
  #main #app_message .box {
    display: block;
    margin: 0 0 1em 0;
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    font-size: 14px;
    padding: 1em 35px 1em 1em;
    position: relative;
  }
  #main #app_message .box.error, #main #app_message .box.warn, #main #app_message .box.info, #main #app_message .box.success {
    padding-left: 35px;
  }
  #main #app_message .box.error img, #main #app_message .box.warn img, #main #app_message .box.info img, #main #app_message .box.success img {
    margin-left: -23px;
  }
  #main #app_message .box .close-icon {
    display: block;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 22px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }
  #main #app_message br {
    display: none;
  }
  #main .page {
    height: auto;
    min-height: 0;
    overflow: auto;
    margin: 0;
  }
  #main .page #navigation {
    display: none;
  }
  #main .page.two-column {
    margin: 0;
    height: calc(100% - 70px);
  }
  #main .page.two-column .column {
    float: none;
    width: inherit;
    display: block;
    margin: 15px;
  }
  #main .page.two-column .column .tile {
    margin-top: 15px;
    padding: 0 !important;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    /*
    VORERST AUSKOMMENTIERT, DA KEINE BITV-KONFORME LOESUNG
                      &:not(.notification):not(.inputform):not(.link) {
       
                         h2, h3 {
                            width: calc(100% - 65px);
                            padding: 15px 50px 15px 15px;
                            cursor: pointer;
                            border-radius: 5px;
                            border-bottom: none;
       
                            &:after {
                               background: url("../img/plus.svg") no-repeat center center;
                               background-size: contain;
                               position: absolute;
                               right: 10px;
                               top: 9px;
                               width: 30px;
                               height: 30px;
                               content: "";
                            }
                         }
       
                         > *:not(h2):not(h3) {
                            display: none;
                         }
       
                         &.expanded {
                            h2, h3 {
                               border-radius: 5px 5px 0 0;
                               border-bottom: 3px solid rgba(0, 0, 0, 0.1);
    
                               &:after {
                                  background-image: url("../img/minus.svg");
                               }
                            }
          
                            > *:not(h2):not(h3) {
                               display: inherit;
                            }
                         }
                      }
    */
  }
  #main .page.two-column .column .tile h2, #main .page.two-column .column .tile h3 {
    position: relative;
    width: calc(100% - 30px);
    margin: 0 0 15px 0;
    padding: 15px 15px 15px 15px;
    font-size: 16px;
    color: #282828;
    font-weight: bold;
    background-color: white;
    border-radius: 5px 5px 0 0;
    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
    line-height: 18px;
  }
  #main .page.two-column .column .tile > *:not(h2):not(h3) {
    padding-left: 15px;
    padding-right: 15px;
  }
  #main .page.two-column .column .tile > *:not(h2):not(h3):last-child {
    padding-bottom: 15px;
  }
  #main .page.two-column .column .tile p {
    font-size: 14px;
  }
  #main .page.two-column .column .tile.notification h2, #main .page.two-column .column .tile.notification h3 {
    width: calc(100% - 65px);
    padding: 15px 15px 15px 50px;
  }
  #main .page.two-column .column .tile.notification h2:before, #main .page.two-column .column .tile.notification h3:before {
    background: url("../img/attention.svg") no-repeat center center;
    background-size: contain;
    position: absolute;
    left: 10px;
    top: 9px;
    width: 30px;
    height: 30px;
    content: "";
  }
  #main .page.two-column .column .tile.link {
    display: inline-block;
    width: calc(50% - 9px);
  }
  #main .page.two-column .column .tile.link a {
    display: block;
    padding: 15px 50px 15px 50px;
    font-size: 16px;
    font-weight: bold;
    position: relative;
  }
  #main .page.two-column .column .tile.link a:after {
    background: url("../img/link_intern.svg") no-repeat center center;
    background-size: contain;
    position: absolute;
    right: 10px;
    top: 9px;
    width: 30px;
    height: 30px;
    content: "";
  }
  #main .page.two-column .column .tile.link a:before {
    position: absolute;
    left: 10px;
    top: 9px;
    width: 30px;
    height: 30px;
    content: "";
  }
  #main .page.two-column .column #link-pwd-forgotten {
    margin-right: 1em;
  }
  #main .page.two-column .column #link-pwd-forgotten a:before {
    background: url("../img/password.svg") no-repeat center center;
    background-size: contain;
  }
  #main .page.two-column .column #link-guest-access a:before {
    background: url("../img/guest.svg") no-repeat center center;
    background-size: contain;
  }
  #main .page.two-column .column #link-register {
    margin-right: 1em;
  }
  #main .page.two-column .column #link-register a:before {
    background: url("../img/register.svg") no-repeat center center;
    background-size: contain;
  }
  #main .page.two-column .column #link-help a:before {
    background: url("../img/help.svg") no-repeat center center;
    background-size: contain;
  }
  #main .page .content {
    margin: 0;
    padding: 15px;
    height: auto;
  }
  #main .page .content .form-select {
    height: auto !important;
    min-height: auto;
    margin: 0;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  }
  #main .page .content .form-select .breadcrumb {
    padding: 15px;
    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: bold;
  }
  #main .page .content .form-select div.select-content {
    height: auto;
    padding: 15px;
    margin: 0;
  }
  #main .page .content .form-select div.select-content .selections {
    margin-bottom: 0;
  }

  #foot {
    display: none;
  }

  input[type="text"],
  input[type="password"],
  textarea,
  select {
    padding: 6px;
    border-radius: 3px;
    margin-left: 0;
    margin-right: 0;
    font-size: 14px;
  }

  input[type="file"] {
    padding: 0 2px;
    border-radius: 3px;
    margin-left: 0;
    margin-right: 0;
    font-size: 14px;
    line-height: 26px;
  }
  input[type="file"]::-webkit-file-upload-button {
    margin: 3px 5px 3px 0;
  }

  label,
  span.label {
    font-size: 14px;
  }

  .formactions {
    white-space: nowrap;
  }
  .formactions button, .formactions a {
    font-size: 14px !important;
    padding: 6px 4px;
    border-radius: 3px;
  }

  .actions {
    line-height: 38px;
  }
  .actions button, .actions a {
    font-size: 14px !important;
    padding: 6px 10px !important;
    border-radius: 3px;
  }
  .actions button + button, .actions button a, .actions a + button, .actions a a {
    margin-left: 0;
  }
  .actions button span[class^="actionIcon"], .actions a span[class^="actionIcon"] {
    background-position-y: 3px;
  }
  .actions input {
    margin-bottom: 1em;
  }

  #loginform br,
  #loginform span.label,
  #loginform #password_forgotten {
    display: none;
  }
  #loginform fieldset {
    padding: 10px 0 15px 0;
  }
  #loginform span.actions {
    display: block;
    margin: 15px 0 0 0;
  }
  #loginform #password_forgotten {
    margin-left: 0;
  }

  #confirmabort #confirmLogoutButton {
    margin-top: 10px;
    display: block;
  }

  #backups #uiContent {
    overflow: auto;
    border-radius: 5px;
    height: auto !important;
    min-height: auto;
    padding: 15px;
  }
  #backups #uiContent .notemplates {
    height: auto;
    min-height: auto;
    margin-bottom: 20px;
  }
  #backups #uiContent form button {
    float: left;
    margin-right: 8px;
  }
  #backups #uiContent #returnButton {
    float: left;
  }

  #formcontainer #app_message .box {
    margin: 1em 1em 0 1em;
  }
  #formcontainer form {
    height: auto;
    padding-bottom: 50px;
  }
  #formcontainer #form_content {
    height: 100% !important;
  }
  #formcontainer #actions {
    overflow: auto;
    margin: 0 !important;
    padding: 10px;
    background-color: #eeeeee;
    height: 30px;
    position: fixed;
    bottom: 0;
    width: calc(100% - 20px);
  }
  #formcontainer.keyboard form {
    padding-bottom: 0;
  }
  #formcontainer.keyboard #actions {
    position: relative;
    bottom: auto;
    width: auto;
  }

  #guest-access,
  #help-links,
  #link-login-page {
    display: none;
  }

  #invalidSession {
    padding-bottom: 15px;
  }

  body.sticky #head {
    padding-bottom: 70px;
  }
  body.sticky #rwd-menu-icon {
    position: fixed;
    top: 15px;
  }
  body.sticky #main #title {
    position: fixed;
    z-index: 1;
    top: 0;
    width: 100%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  }

  #formoverview {
    background-color: white;
    margin-top: 26px;
  }
  #formoverview .pageactions {
    display: block !important;
    font-size: 14px;
    margin-right: 1em;
  }
  #formoverview .pageactions a {
    background-position-y: 3px;
  }
  #formoverview #head {
    padding-bottom: 5px;
    position: fixed;
    z-index: 1;
    top: 0;
  }
  #formoverview #main {
    background-color: white;
    height: auto;
  }
  #formoverview #main #title {
    position: relative;
    z-index: auto;
    top: auto;
    width: auto;
    box-shadow: none;
  }
  #formoverview #main #mainform {
    height: auto;
    overflow: auto;
  }
}
@media screen and (max-width: 635px) {
  input[type="text"],
  input[type="password"],
  textarea,
  select {
    box-sizing: content-box;
    width: calc(100% - 14px) !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
  }

  input[type="file"] {
    box-sizing: content-box;
    width: calc(100% - 6px) !important;
    max-width: calc(100% - 6px) !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
  }

  label {
    margin-bottom: 5px;
  }

  .formrow + .formrow {
    margin-top: 15px;
  }

  #rwd-menu #rwd-menu-content {
    width: calc(100% - 2em);
  }
  #rwd-menu.expanded #rwd-menu-layer {
    display: none;
  }
  #rwd-menu.expanded #rwd-menu-content {
    left: 0;
  }

  #main .page.two-column .column .tile.link {
    display: block;
    width: auto;
  }
  #main .page.two-column .column #link-pwd-forgotten,
  #main .page.two-column .column #link-register {
    margin-right: 0;
  }
}
