:root{
  --first-color: #EE0000;
  --button-hover-background-color: #d40000;
  --button-hover-border-color: #d40000;
}*,::before,::after{box-sizing: border-box}


/* Set padding to keep content from hitting the edges */

.body-content {
  padding-left: 15px;
  padding-right: 15px;
}

body {
  font-family: Sparkasse;
  background-color: #f2f2f2;
}

.header {
  font-family: Sparkasse-Head;
  color: white;
  padding-bottom: 0rem;
  padding-left: .5rem;
}

footer {
  padding-bottom: 20px;
}

@font-face {
  font-family: "Sparkasse-Symbol";
  src: url("../fonts/SparkasseSerif_web_Rg.woff") format("woff");
}

@font-face {
  font-family: "Sparkasse-Head";
  src: url("../fonts/SparkasseHead_web_Rg.woff") format("woff");
}

@font-face {
  font-family: "Sparkasse";
  src: url("../fonts/Sparkasse_web_Rg.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Sparkasse";
  src: url("../fonts/Sparkasse_web_Bd.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Sparkasse";
  src: url("../fonts/Sparkasse_web_It.woff") format("woff");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Sparkasse";
  src: url("../fonts/Sparkasse_web_BdIt.woff") format("woff");
  font-weight: 700;
  font-style: italic;
}


/* Sidebar */

@media screen and (min-width: 900px) {
  .sidebar {
    min-width:135px;
  }

  #sidebar_img {
    width: 50%;
  }
}

@media screen and (max-width: 900px) {
  .sidebar {
    min-width: 60px;
  }

  #sidebar_title {
    display: none;
  }

  #sidebar_img {
    width: 100%;
  }
}

.sidebar-elem {
  width:auto;
  height:50px;
  background-color: white;
}

.icon-row {
  height: 200px;
  min-width: 200px;
  margin-top: 20px;
}

a,
a:hover {
  color: var(--first-color);
  text-decoration: none;
}

/*navbar*/

.navbar {
  background-color: var(--first-color);
}

.navbar-brand {
  color: var(--first-color);
}

/* Text Colors */

.page-title {
  color: var(--first-color); 
  font-size: xx-large; 
  font-weight: bold; 
}

.page-subtitle {
  color: rgb(175, 175, 175);
}

.header-logo {
  height: 90px; 
  width: auto;
}

/*bootstrap-icon default color*/

[class^="bi-"]::before,
[class*=" bi-"]::before {
  color: var(--first-color);
}

[class^="bi-"]::before:hover,
[class*=" bi-"]::before:hover {
  color: var(--button-hover-background-color);
}

[class^="bi-"].white::before,
[class*=" bi-"].white::before {
  color: #ffffff;
}

/*primary button color*/

.btn-primary {
  border-color: var(--first-color);
  border-radius: .5rem;
  background-color: var(--first-color);
  min-width: 250px;
  padding: 12px 24px;
}

/* .btn-primary:disabled,
.btn-primary.disabled {
  border-color: #ff0000 !important;
  background-color: #ff0000 !important;
} */

.btn-primary:hover,
.btn-primary.hover {
  border-color: var(--button-hover-border-color) !important;
  background-color: var(--button-hover-background-color) !important;
}

.btn-primary:active,
.btn-primary.active {
  background-color: var(--button-hover-background-color) !important;
  border-color: var(--button-hover-border-color) !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset,
    0 0 8px rgba(239, 104, 104, 0.6) !important;
  outline: 0 none !important;
}

.btn-primary:focus,
.btn-primary.focus {
  border-color: var(--first-color) !important;
  background-color: var(--first-color) !important;
}

.nav-btn {
  padding: 0;
}

.label-btn {
  color: var(--first-color);
}

.label-btn:hover {
  cursor: pointer;
  text-decoration: underline;
}


/* Icon Buttons */

.icon-btn {
  height: 180px;
  width: 180px;
  border-radius: 15%;
  background-color: white;
  -webkit-transition : border-color 500ms ease-out;
  -moz-transition : border-color 500ms ease-out;
  transition: border-color 500ms ease-out;
}

.icon-btn:hover {
  border-color: var(--first-color) !important;
}

.icon-btn figure {
  margin-bottom: 0;
  width:110px;
  height:110px;
}

.icon-btn img {
  width:65%;
  height:65%;
}

::-moz-selection {
  /* Code for Firefox */
  background-color: rgba(235, 210, 210, 1);
}

::selection {
  background-color: rgba(245, 210, 210, 1);
}

/* Form Page Navigation */

#nav-wrapper {
  position: relative;
}

#navigation {
  min-width: 750px;
  max-width: 100%;
  counter-reset: step;
  overflow: hidden;
  padding: 0;
}

#navigation li {
  list-style-type: none;
  text-transform: uppercase;
  font-size: 0.7rem;
  float: left;
  position: relative;
  text-align: center;
  cursor: pointer;
}

#navigation li::before {
  content: counter(step);
  counter-increment: step;
  width: 2.5rem;
  line-height: 2.5rem;
  display: block;
  font-size: 0.9rem;
  color: #fff;
  font-weight: bold;
  background: grey;
  border-radius: 100%;
  margin: 0 auto 5px auto;
  cursor: pointer;
}

#navigation li::after {
  content: "";
  width: 100%;
  height: 2px;
  background: grey;
  position: absolute;
  left: -50%;
  top: 1.25rem;
  z-index: -1;
}

#navigation li:first-child::after {
  content: "";
  height: 0%;
  width: 0%;
}

#navigation li.active::before {
  background: var(--first-color);
}

@media screen and (min-width: 1500px) {
  /* Margin der ersten Reihe an Icons auf 0 setzen zwecks Zentrierung */
  .icon-row:not(:nth-child(n+7)) {
    margin-top: 0;
  }
}

@media screen and (max-width: 1500px) and (min-width: 1400px){
  /* Margin der ersten Reihe an Icons auf 0 setzen zwecks Zentrierung */
  .icon-row:not(:nth-child(n+6)) {
    margin-top: 0;
  }
}

@media screen and (max-width: 1400px) and (min-width: 1200px) {
  /* Margin der ersten Reihe an Icons auf 0 setzen zwecks Zentrierung */
  .icon-row:not(:nth-child(n+5)) {
    margin-top: 0;
  }
}

@media screen and (max-width: 1200px) and (min-width: 768px) {
  /* Margin der ersten Reihe an Icons auf 0 setzen zwecks Zentrierung */
  .icon-row:not(:nth-child(n+4)) {
    margin-top: 0;
  }
}

@media screen and (max-width: 768px) and (min-width: 576px) {
  /* Margin der ersten Reihe an Icons auf 0 setzen zwecks Zentrierung */
  .icon-row:not(:nth-child(n+3)) {
    margin-top: 0;
  }
}

@media screen and (max-width: 576px) {
  /* Margin der ersten Reihe an Icons auf 0 setzen zwecks Zentrierung */
  .icon-row:first-child {
    margin-top: 0;
  }
}
