/*
ERFOLGSRECHNER
*/

/* animation */

@-webkit-keyframes alert {
  from {
    color: #ec5f5e;
  }

  to {
    color: #f59c20;
  }
}

@keyframes alert {
  from {
    color: #ec5f5e;
  }

  to {
    color: #f59c20;
  }
}

@-webkit-keyframes alert-primary {
  from {
    color: #ec5f5e;
  }

  to {
    color: #fff;
  }
}

@keyframes alert-primary {
  from {
    color: #ec5f5e;
  }

  to {
    color: #fff;
  }
}

@keyframes alert-box-primary {
  from {
    background: #ec5f5e;
  }

  to {
    background: #f59c20;
  }
}

/* layout */

.of-component-range {
  text-align: center;
}

.of-box-result {
  line-height: 2em;
}

/* title */

.of-title-content h1 {
  font-size: 2.25em;
}

.of-title-sub-content h2 {
  font-size: 1.625em;
}

.of-title-calc {
  margin: 0 0 0.5em;
}

.of-title-calc:not(.of-is-first) {
  margin-top: 2.75em;
}

/* text */

.of-text-data {
  display: inline-block;
}

.of-text-conclusion {
  color: #fff;
  font-size: 1.25em;
  background: #555;
  line-height: 1.75em;
  padding: 1em 2em;
}

.of-text-smallprint {
  display: inline-block;
  font-size: 0.75em;
  line-height: 1.5em;
  opacity: 0.5;
}

.of-text-large {
  background: #fff;
  border-radius: 1em;
  color: #f59c20;
  display: inline-block;
  font-size: 1.25em;
  line-height: 1em;
  padding: 0.25em 0.75em;
}

/* result */

.of-text-result {
  color: #f59c20;
  font-size: 1.25em;
  font-weight: bold;
  display: inline-block;
  vertical-align: middle;
}

.of-is-primary .of-text-result {
  color: #fff;
}

/* table */

.of-table-result {
  border-collapse: collapse;
  width: 100%;
}

.of-table-result td {
  padding: 0.25em 0.5em;
}

.of-table-result tbody td:last-child {
  padding: 0 1em;
  text-align: right;
  width: 10em;
}

.of-table-result-benefit td {
  vertical-align: middle;
  padding-right: 0.5em;
}

.of-table-result .of-row-primary {
  background: #f59c20;
  color: #fff;
}

.of-table-result .of-row-primary .of-text-result {
  color: #fff;
}

/* primary box */

.of-is-primary {
  background: #f9b131;
  padding: 1em;
  color: #fff;
}

.of-is-primary.of-title-sub-content {
  background: #f59c20;
  margin: 0;
}

/* alert and effectivity */

.of-is-alert .of-fn-result:not(.of-text-effectivity) {
  -webkit-animation: 0.5s forwards alert;
  animation: 0.5s forwards alert;
  color: #ec5f5e;
}

.of-is-alert .of-fn-primary.of-fn-result {
  -webkit-animation: 0.5s forwards alert-primary;
  animation: 0.5s forwards alert-primary;
  color: #fff;
}

.of-is-alert .of-fn-box-result {
  -webkit-animation: 0.5s forwards alert-box-primary;
  animation: 0.5s forwards alert-box-primary;
  background: #ec5f5e;
}

.of-text-effectivity {
  border-radius: 1em;
  color: #fff;
  padding: 0.25em 0.5em;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.of-is-negative .of-text-effectivity {
  background: #ec5f5e;
  color: #fff;
}

.of-is-positive .of-text-effectivity {
  background: #36a9a2;
}

/* range */

.of-rangeslider,
.of-rangeslider-fill {
  display: block;
}

.of-rangeslider {
  background: #f2f2f2;
  position: relative;
}

.of-rangeslider-is-horizontal {
  border-width: 0.75em 0;
  border-style: solid;
  border-color: #fff;
  box-sizing: content-box;
  height: 0.5em;
  width: 100%;
}

.of-rangeslider-is-vertical {
  width: 0.5em;
  min-height: 10em;
  max-height: 100%;
}

.of-rangeslider-is-disabled {
  opacity: 0.5;
}

.of-rangeslider-fill {
  background: #555;
  position: absolute;
}

.of-rangeslider-is-horizontal .of-rangeslider-fill {
  top: 0;
  height: 100%;
}

.of-rangeslider-is-vertical .of-rangeslider-fill {
  bottom: 0;
  width: 100%;
}

.of-rangeslider-handle {
  background: #f59c20;
  cursor: pointer;
  display: inline-block;
  width: 2em;
  height: 2em;
  position: absolute;
  border-radius: 50%;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.of-rangeslider-handle:hover,
.of-rangeslider-handle:active,
.of-rangeslider-is-active .of-rangeslider-handle {
  background: #f9b131;
}

.of-rangeslider-is-horizontal .of-rangeslider-handle {
  top: -0.75em;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
}

.of-rangeslider-is-vertical .of-rangeslider-handle {
  left: -0.75em;
  touch-action: pan-x;
  -ms-touch-action: pan-x;
}

.of-rangeslider-fill {
  background: #555;
  position: absolute;
}

.of-rangeslider-is-horizontal .of-rangeslider-fill {
  top: 0;
  height: 100%;
}

.of-rangeslider-is-vertical .of-rangeslider-fill {
  bottom: 0;
  width: 100%;
}

.of-rangeslider-handle {
  background: #f59c20;
  cursor: pointer;
  display: inline-block;
  width: 2em;
  height: 2em;
  position: absolute;
  border-radius: 50%;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.of-rangeslider-handle:hover,
.of-rangeslider-handle:active,
.of-rangeslider-is-active .of-rangeslider-handle {
  background: #f9b131;
}

.of-rangeslider-is-horizontal .of-rangeslider-handle {
  top: -0.75em;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
}

.of-rangeslider-is-vertical .of-rangeslider-handle {
  left: -0.75em;
  touch-action: pan-x;
  -ms-touch-action: pan-x;
}