:root {
    --top-height: 75px;
    --start-info-height: 62px;
    --content-height: calc(100vh - var(--start-info-height));
}
:root .bh-bemode {
    --content-height: calc(788px - var(--start-info-height));
}

html,
body {
    top: 0px;
    right: 0px;
    left: 0px;
    bottom: 0px;
    transition: 0.5s ease all;
}
body {
    padding-top: inherit;
}
body.reloading {
    opacity: 0.3;
    filter: grayscale(100%);
}

/*** PAGE ***/
body {
    position: relative;
}
body.bh-femode {
    position: fixed !important;
}

.bh-touch-top {
    height: var(--top-height);
    line-height: var(--top-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 26px;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

.bh-touch-top a {
    flex-basis: 100px;
    cursor: pointer;
    height: var(--top-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bh-touch-top a.bh-touch-top-back {
    flex-basis: 75px;
}

.bh-touch-top a.bh-touch-top-back-text {
    padding-left: 10px;
    font-size: 16px;
    text-align: left;
    white-space: nowrap;
    text-align: left;
}

.bh-touch-top-logo {
    background-image: url("/fileadmin/templates/ext/bh_touch/images/logo_top.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 80%;
}

.bh-touch-top-title {
    flex-basis: calc(100% - 150px);
    padding-right: 10px;
    text-align: right;
}

.bh-touch-page {
    height: var(--content-height);
    width: 100%;
    padding-top: 0px;
    transition: 0.3s ease padding-top;
    background: white;
}

.bh-femode .bh-touch-page {
    height: 100vh;
}

.bh-bemode {
    background: rgba(0, 0, 0, 0.2);
}
/* Fix damit das iPad nach unten rückt */
.bh-touch-spacer-for-backend {
    display: none;
}
.bh-bemode .bh-touch-spacer-for-backend {
    display: block;
    height: 88px;
}

.bh-bemode .bh-touch-page {
    max-width: 998px;
    height: 788px;
    position: relative;
    margin-left: calc(50% - 998px / 2);
    outline: 2px solid fuchsia;
}

.bh-bemode:before {
    margin-top: 88px;
    content: "";
    position: absolute;
    background-image: url("../Images/ipad.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    right: 0px;
    top: -35px;
    height: 858px;
    left: 0px;
    z-index: 100;
    pointer-events: none;
}

body.isWebapp {
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;
}

/*** NAVIGATION ****/
.bh-touch-navi-wrapper {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    left: 100px;
    top: 200px;
    border-top-right-radius: 26px;
    border-bottom-right-radius: 26px;
    z-index: 100;
    background: white;
}

.bh-touch-toggler {
    position: absolute;
    padding: 20px;
    font-size: 40px;
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    border-radius: 100%;
    cursor: pointer;
    left: -70px;
    top: -16px;
    z-index: 2;
    transition: 0.3s ease all;
    transform: rotate(0deg);
}

.active .bh-touch-toggler {
    transform: rotate(180deg);
}

.active .bh-touch-toggler:before {
    content: "\e912" !important;
}

.bh-touch-navi-wrapper .bh-navigation ul {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
}

.bh-touch-navi-wrapper .bh-navigation ul a {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.bh-touch-navi-wrapper .bh-navigation ul li:first-child a {
    border-left: 0px;
}

.bh-touch-navi {
    overflow: hidden;
}

.bh-touch-navi .bh-navigation {
    margin-left: -1000px;
    display: inline-block;
    transition: 0.6s ease all;
}

.bh-touch-content {
    height: var(--content-height);
    background-size: cover;
    background-position: center center;
}

.active .bh-touch-navi .bh-navigation {
    margin-left: 0px;
}

.bh-touch-click-listener {
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    cursor: pointer;
}

.touch-refresh {
    cursor: pointer;
    position: fixed;
    right: 10px;
    bottom: 10px;
    font-size: 30px;
    padding: 10px;
    background: white;
    opacity: 0.5;
}

.bh-touch-start-logo {
    width: 180px;
    height: 135px;
    background-image: url("/fileadmin/templates/ext/bh_touch/images/logo_start.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    top: 30px;
    position: absolute;
    left: calc(50% - 90px);
}

.bh-touch-start .bh-navigation {
    position: absolute;
    left: 45px;
    top: 200px;
    bottom: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 480px;
}

.bh-touch-start-content-right {
    position: absolute;
    right: 45px;
    top: 200px;
    bottom: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 480px;
}

.bh-touch-start-content-right > div {
    width: 100%;
}

.bh-touch-start .bh-navigation a {
    font-size: 26px;
    line-height: 45px;
    padding-right: 10px;
    display: flex;
    color: black;
}

.bh-touch-start-info {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bh-touch-start-info > div {
    padding-bottom: 20px;
    padding-top: 20px;
}

.bh-touch-start-left {
    flex-basis: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
}

.bh-touch-start-right {
    flex-basis: calc(100% - 116px);
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

.touch-refresh {
    display: none;
}

.bh-touch-language {
    position: relative;
    z-index: 100;
}

.bh-touch-start .bh-touch-language {
    position: absolute;
    right: 10px;
    top: 10px;
}

.bh-touch-language-pane {
    position: absolute;
    background: white;
    width: 150px;
    left: calc(-37.5px);
    top: 75px;
    overflow: hidden;
    border-radius: 3px;
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    transition: 0.5s ease all;
    opacity: 0;
    margin-top: 30px;
    pointer-events: none;
}

.bh-touch-language-pane:before {
    content: "";
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 10px 15px 10px 0;
    border-color: transparent white transparent transparent;
}

.bh-touch-language-pane.active {
    opacity: 1;
    margin-top: 0;
    pointer-events: all;
}

.bh-touch-start .bh-touch-language-pane {
    right: 25px;
    left: auto;
}

.bh-touch-page .bh-touch-language-pane a {
    color: black;
    font-size: 15px;
    line-height: 40px;
    height: 40px;
    display: block;
    text-align: center;
}

.bh-touch-language-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    cursor: pointer;
    color: white;
    font-size: 25px;
}

.bh-touch-page-icon-select {
    position: fixed;
    right: 20px;
    top: 80px;
    background: #4f4f4f;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 28px;
    color: white;
    z-index: 100;
}

.bh-touch-page-icon-select > div {
    padding-bottom: 10px;
}

.bh-femode .bh-touch-page-icon-select,
body:not(.bhe-state-editing) .bh-touch-page-icon-select {
    display: none;
}

.bh-touch-page-icon-select label {
    font-size: 12px;
    line-height: 18px;
    display: block;
    white-space: nowrap;
}

.bh-touch-start .bh-navigation ul li {
    list-style-type: none;
    display: flex;
    padding-bottom: 5px;
    padding-top: 5px;
}

.bh-navigation-item-icon {
    width: 45px;
    height: 45px;
    border-radius: 25px;
    background: lightgrey;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.pageTouchIcon {
    display: none;
}

/*------------------------------------*\
  #Mobilversion

  NOTE: Media Query zusätzlich auf max-height
  wegen Tablets mit extremen Seitenverhältnis (z.B. iPhone 11 Pro max 896x414 )
\*------------------------------------*/
@media only screen and (max-width: 767px), screen and (max-height: 700px) {
    body.bh-femode {
        position: relative !important;
    }
    .bh-touch-content {
        height: auto;
    }
}
