:root {
  --app-height: 100vh;
  --scroll-to-reload: 0deg;
}

/* open-sans-regular - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: local('Open Sans Regular'), local('OpenSans-Regular'),
       url('../fonts/open-sans-v17-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/open-sans-v17-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* open-sans-600 - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: fallback;
  src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'),
       url('../fonts/open-sans-v17-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/open-sans-v17-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
div {
  position: relative;
  box-sizing: border-box;
}

hr {
  width: 100%;
  height: 1px;
  margin: 1em 0;
  padding: 0;
  border: 0;
  background: #CCC;
}

body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--app-height);
  padding: 0;
  margin: 0;
  color: #000;
  background: #FFFFFF;
  font-family: 'Open Sans', Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
body.ios {
}
body.no-phone .hide-on-desktop {
  display: none !important;
}
body.offline > * {
  filter: blur(2px);
}
body.offline:after {
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 15px;
  font-size: 1.2rem;
  text-align: center;
  content: 'Um diese App nutzen zu können, benötigen Sie eine Internetverbindung.';
  background: rgba(0,0,0,0.7);
  color: #FFF;
  z-index: 999;
  filter: none;
}

div.not-installed {
  position: fixed;
  display: flex;
  justify-content: space-between;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 999;
  align-items: center;
  background: #FFF;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
div.not-installed .icon {
  display: block;
  width: 40px;
  height: 40px;
}
div.not-installed .icon img {
  margin: 0;
}
div.not-installed .text {
  padding: 0 20px;
  font-size: 0.9rem;
}
div.not-installed .close {
  width: 30px;
  height: 30px;
  overflow: hidden;
}
div.not-installed .close span {
  display: block;
  position: absolute;
  top: calc( 50% - 8px );
  left: calc( 50% - 1px );
  width: 2px;
  height: 16px;
  background: #CCC;
  transform: rotate(45deg);
}
div.not-installed .close span:nth-child(2) {
  transform: rotate(-45deg);
}

body:before {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--app-height);
  content: '';
  background: rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 100;
}
body.sidebar-shown:before, body.popup-shown:before, body.msg-shown:before {
  display: block;
}
body.popup-shown:before {
  z-index: 88;
}
body.msg-shown:before {
  z-index: 100;
}

a, button, input[type="text"], input[type="email"], input[type="date"], input[type="time"], input[type="url"], textarea, select {
  outline: none;
  -webkit-appearance: none;
}

a {
  color: #bf860d;
  text-decoration: none;
}
a:hover {
  color: #333;
}

a.button {
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 3px;
  border-bottom: 1px solid rgba(0,0,0,0.5);
  box-sizing: border-box;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  background: #FAB116;
  border: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  text-align: center;
  color: #FFF;
}
a.button:focus, a.button:hover, a.button:active {
  transform: translate(0,1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}


h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, sans-serif;
}
h1 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
header {
  position: relative;
  width: 100vw;
  height: 48px;
  border-bottom: 2px solid #FAB116;
  background: #232C35;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  z-index: 4;
}

header div.header-logo {
  position: absolute;
  top: 17px;
  left: calc( 50% - 45px );
  width: 90px;
  height: 13px;
}
header div.header-logo img {
  vertical-align: top;
}

#subnav {
  position: relative;
  width: 100vw;
  background: #FFF;
  z-index: 3;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
#subnav ul {
  display: table;
  width: 100%;
  height: 60px;
  padding: 0;
  margin: 0;
  list-style: none;
}
#subnav ul li {
  display: table-cell;
  width: 33.3%;
  padding: 3px 0 0 0;
  margin: 0;
  border-bottom: 3px solid transparent;
  text-align: center;
  vertical-align: middle;
  transition: 400ms;
  cursor: pointer;
}
body.no-mobile #subnav ul li:hover {
  border-bottom-color: #656B71;
}
#subnav ul li.active {
  border-bottom-color: #656B71;
}
#subnav ul li img {
  width: 20px;
  height: 20px;
}
#subnav ul li small {
  display: block;
  font-size: 0.7rem;
  color: #232C35;
}

#ajax-container {
  position: absolute;
  right: 0;
  top: 50px;
  left: 0;
  bottom: 0;
  overflow: hidden;
}

#fullpage {
  position: absolute;
  top: 5px;
  left: calc( -100vw - 5px );
  width: 100vw;
  bottom: 0;
  padding: 20px;
  background: #FFF;
  z-index: 90;
  transition: 300ms;
  box-sizing: border-box;
  overflow: auto;
}
body.fullpage-shown #fullpage {
  left: 0;
}

#menu-button {
  position: absolute;
  top: 15px;
  left: 20px;
  width: 30px;
  height: 19px;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  display: none;
  box-shadow: none;
}
#menu-button:active {
  transform: none;
}
#menu-button span {
  position: absolute;
  display: block;
  width: 30px;
  height: 3px;
  background: #EBEBEB;
  transition: 300ms;
}
#menu-button span:nth-child(1) {
  top: 0;
  left: 0;
}
#menu-button span:nth-child(2) {
  top: 8px;
  left: 0;
}
#menu-button span:nth-child(3) {
  top: 16px;
  left: 0;
}

body.fullpage-shown #menu-button span:nth-child(1) {
  top: 3px;
  width: 17px;
  transform: rotate(-45deg);
}
body.fullpage-shown #menu-button span:nth-child(2) {
  width: 0;
  opacity: 0;
}
body.fullpage-shown #menu-button span:nth-child(3) {
  top: 13px;
  width: 17px;
  transform: rotate(45deg);
}


main {
  position: relative;
  width: 100%;
  height: calc( var(--app-height) - 50px );
  overflow: auto;
  background: #FFF;
  box-sizing: border-box;
}
main.padding {
  padding: 30px 20px;
}
main.gray {
  background: #F2F2F2;
}
#subnav + main {
  height: calc( var(--app-height) - 110px );
}

aside {
  position: fixed;
  top: 0;
  left: -388px;
  width: 380px;
  max-width: calc( 100vw - 40px );
  height: var(--app-height);
  transition: 500ms;
  background: #FFF;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  z-index: 102;
}
aside ul {
  margin: 0 30px;
  padding: 0;
  list-style: none;
}
aside li {
  margin: 0;
  padding: 15px 0;
}
aside li + li {
  border-top: 1px solid #CCC;
}
aside li a {
  display: block;
  color: #bf860d;
}
body.no-mobile aside li a:hover {
  color: #232C35;
}

body.sidebar-shown aside {
  left: 0;
}

#logout-button {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: #999;
  cursor: pointer;
}

#credits-button {
  position: absolute;
  bottom: 30px;
  right: 30px;
  color: #999;
  cursor: pointer;
}
#account-info {
  padding: 30px;
}

#popup {
  position: fixed;
  top: calc( var(--app-height) - 40px );
  left: 0;
  width: 100vw;
  height: var(--app-height);
  padding: 25px 20px 20px 20px;
  background: #FFF;
  box-shadow: 0 0 5px rgba(0,0,0,0.55);
  z-index: 89;
  animation: 600ms popup-slidein;
  transition: 400ms;
}
@keyframes popup-slidein {
  from {
    top: var(--app-height);
  } to {
    top: calc( var(--app-height) - 40px );
  }
}
#popup-button {
  position: absolute;
  top: -25px;
  right: 15px;
  width: 50px;
  height: 50px;
  padding: 15px;
  border: 0;
  background: #FAB116;
  box-shadow: 0 2px 5px rgba(0,0,0,0.35);
  border-radius: 100%;
  z-index: 101;
  transition: 500ms;
}
#popup-button:before {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  content: '';
  background-size: contain;
}
body.no-mobile #popup-button:hover {
  box-shadow: 0 1px 2px rgba(250,177,22,0.8);
}

body.popup-shown #popup {
  top: 30px;
  height: calc( var(--app-height) - 30px );
}
body.popup-shown #popup-button {
  width: 40px;
  height: 40px;
  padding: 10px;
  background-color: #646A70;
}
#popup-button:before {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  content: '';
  background-position: center center;
  background-size: contain;
  transition: 800ms;
}
#popup-button.add:before {
  background-image: url(../images/bu-add.svg);
}
body.popup-shown #popup-button.add:before {
  transform: rotate(45deg);
}

#popup-ajax-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 38px 20px 80px 20px;
  overflow: auto;
}

#popup-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 38px 20px 80px 20px;
  overflow: auto;
}

#popup h1 {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
}

#popup div.popup-toolbar {
  position: absolute;
  left: 20px;
  bottom: 15px;
  width: calc( 100% - 40px );
  padding: 0;
  pointer-events: none;
}
#popup div.popup-toolbar * {
  pointer-events: all;
}
#popup div.popup-toolbar button {
  display: inline-block;
  position: relative;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 30px;
  background: #646A70;
  background-size: 20px 20px;
  background-position: center center;
  background-repeat: no-repeat;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.35);
}
#popup div.popup-toolbar button:active {
  transform: translate(0,1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
#popup div.popup-toolbar button + button {
  margin-left: 5px;
}
#popup div.popup-toolbar button[disabled] {
  opacity: 0.5;
}
#popup div.popup-toolbar button.document {
  background-image: url(../images/bu-file.svg);
}
#popup div.popup-toolbar button.photo {
  background-image: url(../images/bu-photo.svg);
}
body.no-mobile #popup div.popup-toolbar button.photo {
  display: none;
}
#popup div.popup-toolbar button.video {
  background-image: url(../images/bu-video.svg);
}
body.no-mobile #popup div.popup-toolbar button.video {
  display: none;
}
#popup div.popup-toolbar button.audio {
  background-image: url(../images/bu-audio.svg);
}
body.no-mobile #popup div.popup-toolbar button.audio {
  display: none;
}
#popup div.popup-toolbar button.attachment {
  background-image: url(../images/bu-attachment.svg);
}
#popup div.popup-toolbar button.submit {
  float: right;
  width: 70px;
  background-color: #E8A412;
  background-size: 20px 20px;
  background-image: url(../images/bu-send.svg);
}
#popup div.popup-toolbar button.submit[disabled] {
  background-color: #646A70;
}

/* Formular-Felder */
form fieldset, form fieldset ul, form fieldset li {
  position: relative;
  padding: 0;
  margin: 0;
  border: 0;
}
form fieldset + fieldset {
  margin-top: 10px;
}
form fieldset ul {
  list-style: none;
}
form fieldset > ul > li + li {
  margin-top: 10px;
}
form fieldset legend {
  font-size: 1rem;
  font-weight: 400;
  color: #000;
  margin-bottom: 0.2rem;
}
input[type="text"], input[type="date"], input[type="time"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], textarea, select, button, input[type="submit"],
form div.upload-filelist {
  width: 100%;
  background: #F2F2F2;
  padding: 10px;
  border: 0;
  border-radius: 3px;
  border-bottom: 1px solid rgba(0,0,0,0.5);
  box-sizing: border-box;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}
input[type="date"], input[type="time"] {
  height: 2.7rem;
  padding-left: 35px;
  background-image: url(../images/ico-date.svg);
  background-repeat:  no-repeat;
  background-position:  10px center;
  background-size: auto 16px;
}
input[type="time"] {
  background-image: url(../images/ico-time.svg);
}
button, input[type="submit"] {
  cursor: pointer;
  background: #FAB116;
  color: #FFF;
  border: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.35);
}
button[disabled], input[type="submit"][disabled] {
  background: #CCC;
}
button:focus, button:hover, button:active,
input[type="submit"]:focus, input[type="submit"]:hover, input[type="submit"]:active {
  transform: translate(0,1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
select option[value=""] {
  color: #999;
  font-style: italic;
}
input[type="text"][readonly], input[type="date"][readonly], input[type="time"][readonly], input[type="email"][readonly], input[type="password"][readonly], input[type="url"][readonly], input[type="number"][readonly], textarea[readonly], select[readonly] {
  background: none;
}
form div.upload-filelist {
  position: relative;
  padding: 0;
  font-size: 0.9rem;
  color: #646A70;
  overflow: auto;
  background: #FFF;
}
form div.upload-filelist:before {
  display: block;
  content: 'Bitte verwenden Sie die unten angezeigten Buttons um uns Material zukommen zu lassen.';
  font-style: italic;
  color: #CCC;
}
form div.upload-filelist input[type="file"] {
  display: none;
}
form div.upload-filelist li {
  position: relative;
  display: block;
  margin: 5px 0;
  padding: 8px 10px 8px 32px;
  border-radius: 2px;
  background: #F2F2F2 url(../images/ico-file.svg) no-repeat 10px 8px;
  background-size: 15px 20px;
  overflow: hidden;
}
form div.upload-filelist ul {
  margin: 10px 0;
}
form div.upload-filelist li.uploading:before {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  content: '';
  bottom: 0;
  background: rgb(250,177,22);
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(250,177,22,0.5) 50%, rgba(0,0,0,0) 100%);
  animation: uploading 2s infinite;
}
@keyframes uploading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
form div.upload-filelist li.finished {
  color: green;
}
form div.upload-filelist li.image {
  background-image: url(../images/ico-image.svg);
}
form div.upload-filelist li.video {
  background-image: url(../images/ico-video.svg);
}
form div.upload-filelist li.audio {
  background-image: url(../images/ico-audio.svg);
}
form div.upload-filelist button.remove-file {
  display: inline-block;
  width: auto;
  height: 1em;
  padding: 0 5px 5px 5px;
  background: transparent;
  box-shadow: none;
  font-weight: bold;
  color: #666;
  float: right;
  overflow: hidden;
}
form div.upload-filelist button.remove-file:active {
  background: transparent;
  box-shadow: none;
}
form div.upload-filelist.disabled button.remove-file {
  display: none;
}
form div.upload-filelist-size {
  font-size: 0.8rem;
  text-align: right;
  font-style: italic;
  color: #CCC;
}
input[type="text"]::placeholder, input[type="date"]::placeholder, input[type="time"]::placeholder, input[type="email"]::placeholder, input[type="password"]::placeholder, input[type="url"]::placeholder, input[type="number"]::placeholder, textarea::placeholder {
  font-style: italic;
  color: #CCC;
}

#login-window {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc( 100vw - 40px );
  max-width: 500px;
  padding: 0;
  transform: translate(-50%,-50%);
}
#login-window h1 {
  font-size: 1.6rem;
}
#login-window form {
  margin-top: 20px;
}

#msg-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: calc( 100vw - 40px );
  max-width: 500px;
  max-height: calc( var(--app-height) - 40px );
  padding: 20px 20px 20px 20px;
  border-radius: 3px;
  background: #FFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 999;
  text-align: left;
  transform: translate(-50%,-50%);
  overflow: auto;
  font-size: 0.9rem;
}
body.msg-shown #msg-popup {
  display: block;
}
#msg-popup > div small {
  display: block;
  padding-top: 10px;
  font-size: 0.8rem;
}
#msg-popup textarea {
  margin-top: 10px;
}
#msg-popup button {
  display: block;
  width: auto;
  min-width: 110px;
  border: 0;
  padding: 7px 20px;
  margin: 20px 0 0 0;
  background: #FAB116;
  color: #FFF;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  box-sizing: border-box;
}
div.msg-popup-buttons {
  display: flex;
  justify-content: space-around;
}

div.content-container {
  margin-bottom: 70px;
}
div.content-card {
  margin: 20px 10px 70px 10px;
  padding: 20px 20px 20px 17px;
  font-size: 0.9rem;
  background: #FFF;
  border-left: 3px solid #FFF;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  margin-bottom: 15px;
  line-height: 140%;
}
div.content {
  margin: 20px 10px 70px 10px;
  padding: 20px 20px 20px 17px;
  font-size: 0.9rem;
  border-radius: 2px;
  margin-bottom: 15px;
  line-height: 140%;
}

/* BEGIN -- Module: Marketing ---------------------------- */

/* Activities */

#marketing--activities-overview {
  padding: 20px 10px 70px 10px;
  text-align: center;
  min-height: calc( var(--app-height) - 110px );
}
#marketing--activities-overview .grouped-title {
  position: relative;
  display: block;
  color: #666;
  font-weight: bold;
  font-size: 0.8em;
  margin: 15px 0 10px 0;
  text-align: center;
}
#marketing--activities-overview .grouped-title:first-child {
  margin-top: 0;
}
#marketing--activities-overview .info {
  position: relative;
  padding: 10px 20px 10px 10px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 2px;
  background: #FFF;
  border-left: 3px solid #FFF;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  margin-bottom: 5px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
#marketing--activities-overview .info span {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 10px;
  background-color: #CCC;
  color: #666;
  text-align: center;
}
#marketing--activities-overview .info.paused {
  background: #dde9ff;
  border-left: 10px solid #4679DA;
}
#marketing--activities-overview .info.paused span {
  background-color: #4679DA;
  color: #FFF;
}
#marketing--activities-overview .info.blocked {
  background: #fdeaea;
  border-left: 10px solid #CC0000;
}
#marketing--activities-overview .info.blocked span {
  background-color: #CC0000;
  color: #FFF;
}
#marketing--activities-overview .info.updated {
  background: #fdecc9;
  border-left: 0;
}
#marketing--activities-overview .info.updated:after {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top: 5px solid #999;
  border-right: 5px solid #999;
  content: '';
}
#marketing--activities-overview .info.updated span {
  background-color: #FAB116;
  color: #FFF;
}
#marketing--activities-overview .item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 20px 20px 17px;
  font-size: 0.9rem;
  background: #FFF;
  border-left: 3px solid #FFF;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  margin-bottom: 10px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
#marketing--activities-overview .item:after {
  display: block;
  content: '';
  clear: both;
}
#marketing--activities-overview .item.updated:after {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top: 5px solid #999;
  border-right: 5px solid #999;
}
#marketing--activities-overview .item:before {
  display: block;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  opacity: 1;
}
body.no-mobile #marketing--activities-overview .item:hover {
  box-shadow: 0 1px 2px rgba(250,177,22,0.8);
}

#marketing--activities-overview .item.open {
  border-left-color: #009900;
}
#marketing--activities-overview .item.paused,
#marketing--activities-overview .item.draft {
  border-left-color: #4679DA;
}
#marketing--activities-overview .item.paused:before,
#marketing--activities-overview .item.draft:before {
  content: '';
  background: url(../images/ico-paused.svg) no-repeat;
  right: 12px;
  width: 16px;
  height: 16px;
}
#marketing--activities-overview .item.blocked {
  border-left-color: #CC0000;
}
#marketing--activities-overview .item.blocked:before {
  content: '';
  background: url(../images/ico-blocked.svg) no-repeat;
  right: 12px;
  width: 16px;
  height: 16px;
}
#marketing--activities-overview .item.closed {
  border-left-color: #008000;
  opacity: 0.4;
}
#marketing--activities-overview .item.closed:before {
  content: '';
  background: url(../images/ico-closed.svg) no-repeat;
}
#marketing--activities-overview .item.cancelled {
  border-left-color: #990000;
  opacity: 0.4;
}
#marketing--activities-overview .item.cancelled:before {
  content: '';
  background: url(../images/ico-cancelled.svg) no-repeat;
}
#marketing--activities-overview .item.processing {
  border-left-color: #FAB116;
}
#marketing--activities-overview .item.processing:before {
  content: '';
  background: url(../images/ico-processing.svg) no-repeat;
}
#marketing--activities-overview .item .title {
  display: block;
  width: 100%;
  font-weight: 600;
}
#marketing--activities-overview .item .title + .appointments, #marketing--activities-overview .item .title + .files {
  margin-top: 10px;
}
#marketing--activities-overview .item .files {
  display: block;
  width: 100%;
  font-style: italic;
  color: #999;
  padding: 0 0 0 19px;
  background: url(../images/ico-file.svg) no-repeat 0 2px;
  background-size: 12px 16px;
  min-height: 16px;
  float: left;
  box-sizing: border-box;
}
#marketing--activities-overview .item .appointments {
  display: block;
  width: 100%;
  font-style: italic;
  color: #999;
  padding: 0 0 0 19px;
  margin-top: 5px;
  background: url(../images/ico-appointment.svg) no-repeat 0 2px;
  background-size: auto 16px;
  min-height: 16px;
  float: left;
  box-sizing: border-box;
}
#marketing--activities-overview .item .date {
  display: block;
  width: 100%;
  text-align: right;
  float: left;
}
#marketing--activities-overview .item .files + .date, #marketing--activities-overview .item .appointments + .date {
  width: 45%;
}
#marketing--activities-overview .item .details {
  display: none;
  width: 100%;
  padding-top: 10px;
}
#marketing--activities-overview .item .details:empty {
  padding-top: 0;
}
#marketing--activities-overview .item .details .description {
  display: block;
}
#marketing--activities-overview .item .details .note {
  display: block;
  padding: 10px;
  border: 1px solid #CCC;
  background-color: #EEE;
  font-size: 0.9em;
  border-radius: 2px;
}
#marketing--activities-overview .item.blocked .details .note {
  border-color: #CC0000;
  background-color: #FDEAEA;
}
#marketing--activities-overview .item.paused .details .note {
  border-color: #4679DA;
  background-color: #DDE9FF;
}
#marketing--activities-overview .item .details .description + .note {
  margin-top: 10px;
}
#marketing--activities-overview .item .details .description + .file-list, #marketing--activities-overview .item .details .note + .file-list {
  margin-top: 15px;
}
#marketing--activities-overview .item .details .description + .details-buttons, #marketing--activities-overview .item .details .note + .details-buttons {
  margin-top: 10px;
}
#marketing--activities-overview .item .details .file-list ul {
  margin: 5px 0;
  padding: 0;
  list-style: none;
}
#marketing--activities-overview .item .details .file-list ul li {
  display: flex;
  padding: 5px 0 5px 20px;
  background-size: 12px auto;
  background-position: 0 7px;
  background-repeat: no-repeat;
  background-image: url(../images/ico-file.svg);
  justify-content: space-between;
}
#marketing--activities-overview .item .details .file-list ul li span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
#marketing--activities-overview .item .details .file-list ul li.image {
  background-image: url(../images/ico-image.svg);
}
#marketing--activities-overview .item .details .file-list ul li.video {
  background-image: url(../images/ico-video.svg);
}
#marketing--activities-overview .item .details .file-list ul li.audio {
  background-image: url(../images/ico-audio.svg);
}
#marketing--activities-overview .item .details .file-list ul li.additional {
  padding: 5px 0;
  background: none;
}
#marketing--activities-overview .item .details .file-list ul li + li {
  border-top: 1px solid #CCC;
}
#marketing--activities-overview .item .details .file-list ul li a {
  display: block;
  width: calc( 100% - 80px);
  overflow: hidden;
  text-overflow: ellipsis;
}
#marketing--activities-overview .item .details .file-list ul li span.file-size {
  display: block;
  width: 80px;
}
#marketing--activities-overview .item .details .file-list ul li span.file-size {
  text-align: right;
  font-style: italic;
  color: #999;
}
#marketing--activities-overview .item .details .details-buttons {
  text-align: right;
}
#marketing--activities-overview .item .details .details-buttons button {
  width: 30px;
  height: 30px;
  border: 0;
  box-shadow: none;
  background: transparent;
  background-size: 20px 20px;
  background-position: center center;
  background-repeat: no-repeat;
  cursor: pointer;
  overflow: hidden;
  color: #999;
}
#marketing--activities-overview .item .details .details-buttons button:active {
  transform: none;
  box-shadow: none;
}
#marketing--activities-overview .item .details .details-buttons button + button {
  margin-left: 15px;
}
#marketing--activities-overview .item .details .details-buttons button[data-action="details"] {
  background-image: url(../images/bu-details.svg);
}
#marketing--activities-overview .item .details .details-buttons button[data-action="addfile"] {
  background-image: url(../images/bu-addfile.svg);
}
#marketing--activities-overview .item .details .details-buttons button[data-action="mail"] {
  background-image: url(../images/bu-mail.svg);
}
#marketing--activities-overview .item .details .details-buttons button[data-action="delete"],
#marketing--activities-overview .item .details .details-buttons button[data-action="cancel"] {
  background-image: url(../images/bu-delete.svg);
  background-size: 18px 18px;
}
#marketing--activities-overview .item .details .details-buttons button[data-action="addappointment"] {
  background-image: url(../images/bu-addappointment.svg);
}
#marketing--activities-overview .item .details .details-buttons button[data-action="pause"] {
  background-image: url(../images/bu-pause.svg);
}
#marketing--activities-overview .item.paused .details .details-buttons button[data-action="pause"],
#marketing--activities-overview .item.draft .details .details-buttons button[data-action="pause"] {
  background-image: url(../images/bu-play.svg);
}
#marketing--activities-overview .item .details .details-buttons button.loading {
  background-image: url(../images/bu-loading.svg) !important;
  animation: rotate 1.5s infinite linear !important;
  background-size: 16px 16px !important;
}
@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
#marketing--activities-overview .item.closed .details button[data-action="addfile"], #marketing--activities-overview .item.closed .details button[data-action="addappointment"], #marketing--activities-overview .item.closed .details button[data-action="pause"], #marketing--activities-overview .item.closed .details button[data-action="cancel"],
#marketing--activities-overview .item.cancelled .details button[data-action="addfile"], #marketing--activities-overview .item.cancelled .details button[data-action="addappointment"], #marketing--activities-overview .item.cancelled .details button[data-action="pause"], #marketing--activities-overview .item.blocked .details button[data-action="pause"], #marketing--activities-overview .item.cancelled .details button[data-action="cancel"] {
  display: none;
}

#marketing--activities-form-add input[type="submit"] {
  display: none;
}

.marketing--activities-fullpage-status {
  display: block;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.marketing--activities-fullpage-status span {
  font-weight: bold;
}
.marketing--activities-fullpage-status.draft span {
  color: #666;
}
.marketing--activities-fullpage-status.paused span {
  color: #4679DA;
}
.marketing--activities-fullpage-status.blocked span {
  color: #CC0000;
}
.marketing--activities-fullpage-status.processing span {
  color: #FAB116;
}
.marketing--activities-fullpage-status.cancelled span {
  color: #CC0000;
}
.marketing--activities-fullpage-status.open span,
.marketing--activities-fullpage-status.closed span {
  color: #008000;
}
.marketing--activities-fullpage-status div.note {
  display: block;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #CCC;
  background-color: #EEE;
  color: #000;
  font-size: 0.8em;
  border-radius: 2px;
}
.marketing--activities-fullpage-status.blocked div.note {
  border-color: #CC0000;
  background-color: #FDEAEA;
}
.marketing--activities-fullpage-status.paused div.note {
  border-color: #4679DA;
  background-color: #DDE9FF;
}
.marketing--activities-fullpage-name {
  display: block;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 8px 25px 8px 0;
  background: url(../images/ico-edit.svg) no-repeat right center;
  background-size: 15px auto;
  border-bottom: 1px solid #EEE;
}
.marketing--activities-fullpage-name.patching {
  background: #EEE;
  color: #666;
  border-radius: 2px;
}
.marketing--activities-fullpage-name:empty:before {
  content: 'Unbenannt';
  font-style: italic;
  color: #CCC;
}
.marketing--activities-fullpage-description {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9em;
  min-height: 1em;
  padding: 8px 25px 8px 0;
  background: url(../images/ico-edit.svg) no-repeat right center;
  background-size: 15px auto;
  border-bottom: 1px solid #EEE;
}
.marketing--activities-fullpage-description.patching {
  background: #EEE;
  color: #666;
  border-radius: 2px;
}
.marketing--activities-fullpage-description:empty:before {
  content: 'Beschreibung';
  font-style: italic;
  color: #CCC;
}
.marketing--activities-fullpage-filelist {
  margin-top: 30px;
}
.marketing--activities-fullpage-filelist ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.marketing--activities-fullpage-filelist ul li {
  display: flex;
  padding: 5px 5px 5px 23px;
  margin: 10px 0;
  border-radius: 2px;
  background: #F2F2F2;
  background-size: 12px auto;
  background-position: 5px 7px;
  background-repeat: no-repeat;
  background-image: url(../images/ico-file.svg);
  justify-content: space-between;
  font-size: 0.9rem;
}
.marketing--activities-fullpage-filelist ul li a {
  display: block;
  overflow: hidden;
  padding-right: 20px;
  text-overflow: ellipsis;
}
.marketing--activities-fullpage-filelist ul li.image {
  background-image: url(../images/ico-image.svg);
}
.marketing--activities-fullpage-filelist ul li.video {
  background-image: url(../images/ico-video.svg);
}
.marketing--activities-fullpage-filelist ul li.audio {
  background-image: url(../images/ico-audio.svg);
}
.marketing--activities-fullpage-filelist ul li span.file-size {
  font-style: italic;
  color: #666;
  float: right;
}
.marketing--activities-fullpage-appointments {
  margin-top: 30px;
}
.marketing--activities-fullpage-appointments ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.marketing--activities-fullpage-appointments ul li {
  padding: 5px 10px;
  margin: 10px 0;
  font-size: 0.9em;
  background: #F2F2F2;
  border-radius: 2px;
}
.marketing--activities-fullpage-appointmentrequests {
  margin-top: 30px;
}
.marketing--activities-fullpage-appointmentrequests ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.marketing--activities-fullpage-appointmentrequests ul li {
  padding: 5px 10px;
  margin: 10px 0;
  font-size: 0.9em;
  background: #F2F2F2;
  border-radius: 2px;
}

/* Appointments */

#marketing--appointments-overview {
  padding: 20px 10px 70px 10px;
  min-height: calc( var(--app-height) - 110px );
}
#marketing--appointments-overview .grouped-title {
  position: relative;
  display: block;
  color: #666;
  font-weight: bold;
  font-size: 0.8em;
  margin: 15px 0 10px 0;
  text-align: center;
}
#marketing--appointments-overview .grouped-title:first-child {
  margin-top: 0;
}
#marketing--appointments-overview .item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 20px 20px 17px;
  font-size: 0.9rem;
  background: #FFF;
  border-left: 3px solid #FFF;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  margin-bottom: 15px;
  cursor: pointer;
}
#marketing--appointments-overview .item:after {
  display: block;
  content: '';
  clear: both;
}
#marketing--appointments-overview .item.confirmed {
  border-left-color: #008000;
}
#marketing--appointments-overview .item.requested {
  border-left-color: #FAB116;
}
#marketing--appointments-overview .item.requested:before {
  display: block;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  content: '';
  background: url(../images/ico-requested.svg) no-repeat;
  opacity: 1;
}
#marketing--appointments-overview .item.recall:before {
  display: block;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  content: '';
  background: url(../images/ico-phone.svg) no-repeat;
  opacity: 1;
}

#marketing--appointments-overview .item .title {
  display: block;
  width: 100%;
  font-weight: 600;
}
#marketing--appointments-overview .item .date, #marketing--appointments-overview .item .location,
#marketing--appointments-overview .item .phone, #marketing--appointments-overview .item .person {
  display: block;
  width: 100%;
  font-style: italic;
  color: #999;
  padding: 0 0 0 19px;
  margin-top: 5px;
  background: url(../images/ico-appointment.svg) no-repeat 0 2px;
  background-size: auto 16px;
  min-height: 16px;
  box-sizing: border-box;
}
#marketing--appointments-overview .item .location {
  background: url(../images/ico-location.svg) no-repeat 0 2px;
  background-size: auto 16px;
  min-height: 18px;
}
#marketing--appointments-overview .item .phone {
  background: url(../images/ico-phone.svg) no-repeat 0 2px;
  background-size: auto 14px;
}
#marketing--appointments-overview .item .person {
  background: url(../images/ico-user.svg) no-repeat 0 2px;
  background-size: auto 14px;
}

#marketing--appointments-overview .item .details {
  display: none;
  width: 100%;
  padding-top: 10px;
}

#marketing--appointments-overview .item .details .details-buttons {
  text-align: right;
}
#marketing--appointments-overview .item .details .details-buttons button {
  width: 30px;
  height: 30px;
  border: 0;
  box-shadow: none;
  background: transparent;
  background-size: 20px 20px;
  background-position: center center;
  background-repeat: no-repeat;
  cursor: pointer;
  overflow: hidden;
  color: #999;
  opacity: 1;
}
#marketing--appointments-overview .item .details .details-buttons button:active {
  transform: none;
  box-shadow: none;
}
#marketing--appointments-overview .item .details .details-buttons button + button {
  margin-left: 15px;
}
#marketing--appointments-overview .item .details .details-buttons button[data-action="delete"] {
  background-image: url(../images/bu-delete.svg);
}
#marketing--appointments-overview .item .details .details-buttons button[data-action="jumptoactivity"] {
  background-image: url(../images/bu-jumptoactivity.svg);
}
#marketing--appointments-overview .item .details .details-buttons button.loading {
  background-image: url(../images/bu-loading.svg) !important;
  animation: rotate 1.5s infinite linear !important;
  background-size: 16px 16px !important;
}



#marketing--appointments-form-request input[type="submit"] {
  display: none;
}
#marketing--appointments-form-request input[name="date"] {
  width: 60%;
}
#marketing--appointments-form-request input[name="time"] {
  width: calc( 40% - 10px );
  margin-left: 10px;
}
#marketing--appointments-form-request input[name="postcode"] {
  width: 30%;
}
#marketing--appointments-form-request input[name="city"] {
  width: calc( 70% - 10px );
  margin-left: 10px;
}

/* Contact */
#marketing--contact-form-contact input[name="date"] {
  width: 60%;
}
#marketing--contact-form-contact input[name="time"] {
  width: calc( 40% - 10px );
  margin-left: 10px;
}
#marketing--contact-form-contact input[name="postcode"] {
  width: 30%;
}
#marketing--contact-form-contact input[name="city"] {
  width: calc( 70% - 10px );
  margin-left: 10px;
}
#marketing--contact-form-contact li.recall {
  display: none;
}

/* Mail */
#marketing--contact-form-mail textarea[name="message"] {
  height: 250px;
}

/* END -- Module: Marketing ---------------------------- */



/* BEGIN -- Module: login ----------------------------- */

/* Account overview */
#login--accounts-overview {
}
#login--accounts-overview .item {
  margin: 20px 0;
  padding: 10px 20px;
  font-size: 0.9rem;
  background: #EFEFEF;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  margin-bottom: 15px;
  line-height: 140%;
  cursor: pointer;
}
#login--accounts-overview .item .name {
  display: block;
  font-weight: bold;
}
#login--accounts-overview .item .email {
  display: block;
  color: #666;
  font-style: italic;
}

/* Login */
#login--form-login input[name="customer_no"] {
  -moz-appearance:textfield;
}
#login--form-login input[name="customer_no"]::-webkit-outer-spin-button, #login--form-login input[name="customer_no"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#login--accounts-abort, #login--form-newaccount-abort, #login--form-verifyaccount-abort {
  margin-top: 10px;
  background-color: #FFF;
  box-shadow: none;
  color: #999;
}
#login--accounts-abort:active, #login--form-newaccount-abort:active, #login--form-verifyaccount-abort:active {
  transform: none;
}

/* Verify account */
#login--form-verifyaccount input[name="pin"] {
  font-size: 2rem;
  text-align: center;
  letter-spacing: 10px; 
}

/* END -- Module: login ----------------------------- */


/* Loading */
.spinner {
  position: absolute;
  top: calc( 50% - 40px );
  left: calc( 50% - 40px );
  width: 80px;
  height: 80px;
}
.spinner div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #CCC;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.spinner div:nth-child(1) {
  left: 8px;
  animation: spinner1 0.6s infinite;
}
.spinner div:nth-child(2) {
  left: 8px;
  animation: spinner2 0.6s infinite;
}
.spinner div:nth-child(3) {
  left: 32px;
  animation: spinner2 0.6s infinite;
}
.spinner div:nth-child(4) {
  left: 56px;
  animation: spinner3 0.6s infinite;
}
@keyframes spinner1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes spinner3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes spinner2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

#scrollToReload {
  position: relative;
}
#scrollToReload:before {
  position: absolute;
  bottom: 10px;
  left: calc( 50% - 20px );
  width: 40px;
  height: 40px;
  content: '';
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
#scrollToReload:after {
  position: absolute;
  bottom: 10px;
  left: calc( 50% - 20px );
  width: 40px;
  height: 40px;
  content: '';
  border-radius: 20px;
  background: url(../images/ico-reload.svg) no-repeat center center;
  background-size: 20px 20px;
  transform: rotate(var(--scroll-to-reload));
}

@media (min-width: 1000px) {
  aside {
    position: fixed;
    top: 50px;
    left: 0;
    width: 359px;
    max-width: 359px;
    height: calc( var(--app-height) - 50px );
    border-right: 1px solid #AAA;
    transition: 500ms;
    background: #FFF;
    box-shadow: none;
  }
  aside ul {
    margin: 0 15px;
  }
  #ajax-container {
    left: 361px;
    width: calc( 100% - 360px );
  }
/*  header {
    left: 381px;
    width: calc( 100vw - 380px );
  }*/
  #popup {
    left: 361px;
    width: calc( 100vw - 360px );
  }
  #subnav {
    width: 100%;
  }
  #menu-button {
    display: none !important;
  }
  #account-info {
    padding: 15px;
  }
  #logout-button {
    bottom: 15px;
    left: 15px;
  }

  #credits-button {
    bottom: 15px;
    right: 15px;
  }
}
