body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-background);
}

header {
  color: var(--color-header-textfont);
  background-color: var(--color-header-background);
  padding: 1.5rem 0;
  margin-bottom: 1rem;
}

/*
body.cs-home > header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1050;
}
*/

#logo-client {
  max-height: 80px;
  height: 80px;
}

#logo-calculator {
  height: 45px;
}

@media screen and (max-width: 767px) {

  #logo-client {
    max-height: 50px;
  }  

  #logo-calculator {
    max-height: 25px;
  }
  
}

footer #footer-image,
footer #footer-image-ifeu {
  height: 60px;
}

@media screen and (max-width: 767px) {

  footer #footer-image,
  footer #footer-image-ifeu {
    height: 40px;
  }
    
}

hr {
  border-color: #999999;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

a:focus,
a:hover {
  color: var(--color-link-hover);
  text-decoration: none;
}

.bg-grey {
  background-color: var(--color-background);
}

/* Wrapper für Hero auf Landing page */
body.cs-home > #wrapper-hero {
  width: 100vw;
  height: 100vh;
  display: block;
}

/* Hero */
.hero {
  width: 100vw;
  height: 100vh;
  display: block;
}

.hero #hero-caption {
  position: absolute;
  bottom: 5%;
  max-width: 95%;
  animation: fadeIn 2s;
}

@media (min-width: 768px) {
  .hero #hero-caption {
    max-width: 75%;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }  
}

@media (min-width: 992px) {
  .hero #hero-caption {
    max-width: 75%;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero h2 {
    font-size: 2rem;
  }  
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.hero #hero-caption .hero-shadow {
  text-shadow: 1px 1px 2px #000, 0 0 1em #000, 0 0 0.2em #000;
}

.hero #hero-video,
.hero #hero-image {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: -1;
}

.hero #hero-image {
  filter: brightness(75%);
}

/* Customizing */

.cs-whats-new a {
  color: var(--color-link) !important;
}

.cs-whats-new a:hover {
  color: var(--color-link-hover) !important;
}


.cs-landing h2, .cs-landing h3 {
  color: var(--btn-bg-success);
}

.cs-landing a {
  color: var(--color-text);
}

.cs-landing a:hover {
  color: var(--btn-bg-success);
}

.cs-headline {
  background-color: rgba(255, 255, 255, 0);
}

.cs-nav {
  background-color: rgba(255,255,255,1);
}

.cs-container {
  background-color: rgba(255, 255, 255, 1);
}

.cs-progress-bar {
  background-color: rgba(255,255,255,1);
  padding-top: 1rem !important;
}

.cs-form-container {
  background-color: rgba(255, 255, 255, 0);
}

.cs-form-section-headline {
  background-color: rgba(255,255,255,0.9);
}

.cs-form-section-content {
  background-color: rgba(255,255,255,1);
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  padding-top: 1rem !important;
}

/* Nav */
@media screen and (min-width: 1200px) {

  .nav {
    font-size: 1.25rem;
  }

  .nav-tabs .dropdown-menu {
    font-size: 1.15rem;
  }
}

.nav-tabs .nav-link {
  color: var(--color-link);
  background-color: rgba(255,255,255,0.8);
  border-radius: 0;
  font-weight: 700;
  transition: all 0.3s ease-in-out;
}

.nav-tabs .nav-link:hover {
  color: var(--color-link-hover);
  background-color: rgba(255,255,255,0.4);
  border-radius: 0;
  transition: all 0.3s ease-in-out;
}

.nav-tabs .dropdown-menu {
  border-top: 0;
  z-index:1050;
}

a.nav-arrows {
  font-size: 3rem;
  line-height: 0;
  color: var(--btn-bg-success);
  transition: all 0.3s ease-in-out;
}

a.nav-arrows:hover {
  color: var(--btn-bg-success);
  opacity: 0.75;
}

/*
@media screen and (min-width: 1200px) {
*/
  a.nav-arrows {
    position: fixed;
    top: 50vh;
    z-index: 1030;
  }

  a.nav-arrows#nav-arrows-back {
    left: 2vw;
  }

  a.nav-arrows#nav-arrows-forward {
    right: 2vw;
  }
/*  
}
*/

.dropdown-menu {
  border: none;
  margin-top: 0 !important;
  padding-top: 0;
}

.dropdown-item.active, .dropdown-item:active {
  background-color: var(--color-link);
}

.btn {
  border-radius: 0;
}

.btn-outline-primary {
  background-color: var(--color-link) !important;
  border-color: var(--color-link) !important;
  color: #fff !important;
  border-radius: 0;
}

.btn-outline-primary.active,
.btn-outline-primary.focus,
.btn-outline-primary:active,
.btn-outline-primary:focus,
.btn-outline-primary:hover,
.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active,
.open > .dropdown-toggle.btn-outline-primary {
  background-color: var(--color-link-hover) !important;
  border-color: var(--color-link-hover) !important;
  color: #fff !important;
  transition: all 0.3s ease-in-out;
}

.btn-success {
  background-color: var(--btn-bg-success);
  border-color: var(--btn-border-success);
  color: var(--btn-txt-success);
  transition: all 0.3s ease-in-out;
}

.btn-success.active,
.btn-success.focus,
.btn-success:active,
.btn-success:focus,
.btn-success:hover,
.open > .dropdown-toggle.btn-success {
  background-color: var(--btn-active-bg-success);
  border-color: var(--btn-active-border-success);
  color: var(--btn-active-txt-success);
}

.btn-default.active,
.btn-default.focus,
.btn-default:active,
.btn-default:focus,
.btn-default:hover {
  border-color: var(--color-link);
  color: var(--color-link);
  background-color: #fff;
  box-shadow: none;
  transition: all 0.3s ease-in-out;
}

.btn-danger {
  background-color: #d1332e;
  border-color: #d1332e;
  transition: all 0.3s ease-in-out;
}

.btn-danger.active,
.btn-danger.focus,
.btn-danger:active,
.btn-danger:focus,
.btn-danger:hover,
.open > .dropdown-toggle.btn-danger {
  color: #fff;
  background-color: #9b2622;
  border-color: #9b2622;
}

/* Form */
.form-control,
.form-select {
  border: none;
  border-radius: 0;
  border-bottom: 2px solid var(--color-link);
  font-size: 1.25rem;
}

.form-label,
.col-form-label {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .col-form-label {
    text-align: end;
  }
}

.input-group-text {
  background: none;
  border: none;
}

input[type="radio"]:focus {
  outline: 3px solid blue;
}

input[type="radio"]:focus:not(input[type="radio"]:focus-visible) {
  outline: 0;
}

input[type="radio"]:focus-visible {
  outline: 3px solid blue;
}

.btn-group {
  display: flex;
  column-gap: 1rem;
}

/* Table */
.table-result {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 10px;
  background-color: var(--color-background);
}

.table-result .h5 {
  font-size: 1rem;
}

.table-result th,
.table-result td {
  text-align: end;
}

@media screen and (min-width: 768px) {

  .table-result .h5 {
    font-size: 1.25rem;
  }
  
  .table-result th,
  .table-result td {
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
  }
  
}

/* Progress bar */
progress[value] {
  --color: #007626; /* the progress color */
  --background: #5ead35; /* the background color */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  width: 100%;
  height: 13px;
  margin: 0px;
  border-radius: 10em;
  background: var(--background);
}

progress[value]::-webkit-progress-bar {
  border-radius: 10em;
  background: var(--background);
}

progress[value]::-webkit-progress-value {
  border-radius: 10em;
  background: var(--color);
}
progress[value]::-moz-progress-bar {
  border-radius: 10em;
  background: var(--color);
}

/* Charts */
#chart-calculator {
  width: 100%;
  height: 600px;
}

@media screen and (min-width: 768px) {

  #chart-calculator {
    width: 75%;
    height: 600px;
  }
}

@media screen and (min-width: 992px) {

  #chart-calculator {
    width: 50%;
    height: 600px;
  }
}

/* Charts */
#chart-mcp {
  width: 100%;
  height: 600px;
}

/* Overwrite tom-select.css */
.ts-control {
  border-radius: 0px;
}

/* Overwrite rangeslider.css */
.irs--round .irs-bar {
  background-color: var(--color-link) !important;
}

.irs--round .irs-handle {
  border: 4px solid var(--color-link) !important;
}

.irs--round .irs-single {
  background-color: var(--color-link) !important;
}

/* Special classes */
@media print {
  a[href]:after {
    content: "";
  }

  header {
    border: 0px none;
  }
}

.animateIn {
  animation: animateIn 0.5s;
}

.animateOut {
  animation: animateOut 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  .animateIn {
    animation: none;
  }
  
  .animateOut {
    animation: none;
  }
}

@keyframes animateIn {
  0% {
    opacity: 0;
    transform-origin: top;
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    transform-origin: top;
    transform: translateX(1);
  }
}

@keyframes animateOut {
  0% {
    opacity: 1;
    transform-origin: bottom;
    transform: translateX(1);
  }
  100% {
    opacity: 0;
    transform-origin: bottom;
    transform: translateX(0);
  }
}

.code {
  display: inline-block;
  padding: 2rem;
  font-size: 1.25rem;
  color: #000;
  background-color: #f9f2f4;
}

.note {
  padding: 0.5rem 0 0.5rem 1rem;
  margin-left: 1rem;
  margin-bottom: 1rem;
  border-left: 1px solid rgba(0, 0, 0, 0.5);
}

/* Range input / https://range-input-css.netlify.app */
/*********** Baseline, reset styles ***********/
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

/* Removes default focus */
input[type="range"]:focus {
  outline: none;
}

/******** Chrome, Safari, Opera and Edge Chromium styles ********/
/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
  background-color: #c0c0c0;
  border-radius: 0.5rem;
  height: 0.5rem;
}

/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  margin-top: -12px; /* Centers thumb on the track */
  background-color: var(--color-link);
  border-radius: 1rem;
  height: 2rem;
  width: 1rem;
}

input[type="range"]:focus::-webkit-slider-thumb {
  outline: 3px solid var(--color-link);
  outline-offset: 0.125rem;
}

/*********** Firefox styles ***********/
/* slider track */
input[type="range"]::-moz-range-track {
  background-color: #c0c0c0;
  border-radius: 0.5rem;
  height: 0.5rem;
}

/* slider thumb */
input[type="range"]::-moz-range-thumb {
  background-color: var(--color-link);
  border: none; /*Removes extra border that FF applies*/
  border-radius: 1rem;
  height: 2rem;
  width: 1rem;
}

input[type="range"]:focus::-moz-range-thumb {
  outline: 3px solid #0056d6;
  outline-offset: 0.125rem;
}

/* Badges */
.badge-emission {
  color: var(--color-text);
  font-weight: bold;
  padding: 10px 10px 5px 10px;
  border-left: 15px solid #eee;
  background-color: #eee;
  border-radius: 0.5rem;
}

.badge-emission h4 {
  margin-bottom: .25rem;
}

.badge-emission.emission {
  border-left: 15px solid var(--color-emission);
}

.badge-emission.emission.housing {
  border-left: 15px solid var(--color-housing);
}

.badge-emission.emission.power {
  border-left: 15px solid var(--color-power);
}

.badge-emission.emission.mobility {
  border-left: 15px solid var(--color-mobility);
}

.badge-emission.emission.food {
  border-left: 15px solid var(--color-food);
}

.badge-emission.emission.consumption {
  border-left: 15px solid var(--color-consumption);
}

.badge-emission.emission.public-consumption {
  border-left: 15px solid var(--color-public-consumption);
}

.badge-emission.emission-self {
  border-left: 15px solid var(--color-emission-self);
}

.badge-emission.emission-other {
  border-left: 15px solid var(--color-emission-other);
}

/* Cookie consent */
#klaro-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-background);
}

#klaro .cookie-notice,
#klaro .cookie-modal {
  margin-top: 30px;
  margin-bottom: 60px;
  z-index:1050;
}

#klaro ul.cm-services {
  padding-left: 0px;
  list-style: none;
}

#klaro .cm-list-title {
  padding-left: 5px;
}

#klaro button.cm-btn {
  margin: 15px 15px 15px 0px;
}

.icons-large {
  height: 100px;
  margin-right: 5px;
  padding: 10px;
}

.icons-large.grey {
  background-color: var(--color-background);
}

.icons-large.white {
  background-color: #ffffff;
}

@media screen and (max-width: 575.98px) {
  .icons-large {
    height: 90px;
    margin-right: 0px;
  }
}

.icons-small {
  height: 30px;
  margin-top: -12px;
  margin-right: 10px;
}

.icon-container {
  background-color: #ffffff;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin-right: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.icon-container.large {
  width: 170px;
  height: 170px;
}

.icon-container.grey {
  background-color: var(--color-background);
}

.icon-container img {
   max-width: 80px;
}

.icon-container.large img {
  max-width: 120px;
}