/**
    GLOBAL
**/
@media screen and (max-width: 576px) {
  .container-lg {
    max-width: 90%;
  }
}
@media screen and (min-width: 576px) {
  .container-lg {
    max-width: 80%;
  }
}
@media screen and (min-width: 768px) {
  .container-lg {
    max-width: 80%;
  }
}
@media screen and (min-width: 992px) {
  .container-lg {
    max-width: 80%;
  }
}

header {
  position: relative;
  position: sticky;
  top: 0;
  background-color: #1A181D;
  z-index: 10;
}
@media screen and (max-width: 576px) {
  header .container-lg {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }
}

.navbar-dark .navbar-nav .nav-link {
  color: #FFFFFF;
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: #F3A946;
}
.navbar-dark .navbar-nav .nav-link.active {
  color: #F3A946;
}

.nav-link {
  color: #FFFFFF;
}
.nav-link:hover {
  color: #F3A946;
}
.nav-link.active {
  color: #F3A946;
}

.bg-dark {
  background-color: #1A181D !important;
}

footer {
  background-color: #1A181D;
  color: #FFFFFF;
}

.hero {
  position: relative;
}

h1 {
  display: block;
  background-color: #F3A946;
  color: #FFFFFF;
  width: fit-content;
  height: 3rem;
  padding-right: 1rem;
}
h1:before {
  content: "";
  background-color: #F3A946;
  position: absolute;
  height: 3rem;
  width: 20vw;
  left: 0;
  z-index: -1;
}

h4 {
  display: block;
  background-color: #1A181D;
  color: #FFFFFF;
  width: fit-content;
  height: 3rem;
  padding-right: 1rem;
}
@media screen and (max-width: 576px) {
  h4 {
    font-size: calc(1.2rem + 0.3vw);
  }
}
h4:before {
  content: "";
  background-color: #1A181D;
  position: absolute;
  height: 3rem;
  width: 20vw;
  left: 0;
  z-index: -1;
}

h5 {
  display: block;
  background-color: #F3A946;
  color: #FFFFFF;
  width: fit-content;
  height: 3rem;
  padding-right: 1rem;
}
@media screen and (max-width: 576px) {
  h5 {
    font-size: calc(1.1rem + 0.3vw);
  }
}
h5:before {
  content: "";
  background-color: #F3A946;
  position: absolute;
  height: 3rem;
  width: 20vw;
  left: 0;
  z-index: -1;
}

.btn-orange {
  background-color: #F3A946;
  color: #FFFFFF;
  width: fit-content;
  padding: 0.5rem 2rem;
  font-size: 2rem;
  border-radius: 0%;
}

/**
    ABOUT US
**/
@media screen and (max-width: 767px) {
  .tradition > .btn-orange {
    width: 100%;
    font-size: 1.5rem;
  }
  .tradition > .btn-orange:not(:first-of-type) {
    margin-top: 1rem;
  }
}
@media screen and (min-width: 768px) {
  .tradition > .btn-orange:not(:first-of-type) {
    margin-left: 2rem;
  }
}

.history .history-nodes {
  border-right-color: #1A181D;
  border-right-style: solid;
  border-right-width: 4px;
  position: relative;
}
.history .history-nodes:after {
  content: "";
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 32px solid #1A181D;
  position: absolute;
  bottom: -18px;
  right: -18px;
}
.history .history-nodes > .history-node {
  padding-bottom: 2rem;
}
.history .history-nodes > .history-node > .history-node-title {
  color: #F3A946;
  font-size: 1.2rem;
}
.history .history-nodes > .history-node > .history-node-year {
  float: right;
  padding-right: 4rem;
  border-bottom-color: #1A181D;
  border-bottom-style: solid;
  border-bottom-width: 4px;
  position: relative;
}
.history .history-nodes > .history-node > .history-node-year:after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #1A181D;
  position: absolute;
  bottom: -10px;
  right: -10px;
}
.history .history-nodes > .history-node > .history-node-body {
  margin-top: 1rem;
  padding-right: 1rem;
}

/**
    SERVICES
**/
ul {
  list-style: none;
  vertical-align: middle;
  display: inline-block;
  padding-left: 0;
  margin-bottom: 0;
}
@media screen and (min-width: 768px) {
  ul:first-of-type {
    margin-right: 4rem;
  }
}
ul > li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
ul > li::before {
  content: "";
  min-width: 24px;
  height: 24px;
  background-color: #F3A946;
  display: inline-block;
  margin-right: 1rem;
  vertical-align: middle;
}

/**
    REFERENCES
**/
.references .reference {
  margin-bottom: 2rem;
  align-items: flex-start;
}
.references .reference:not(:last-of-type) {
  border-bottom-width: 1px;
  border-bottom-color: #1A181D;
  border-bottom-style: solid;
  padding-bottom: 2rem;
}
@media screen and (min-width: 992px) {
  .references .reference {
    display: flex;
  }
}
.references .reference .reference-image {
  width: 100%;
  margin-right: 1.5rem;
  display: flex;
}
@media screen and (min-width: 992px) {
  .references .reference .reference-image {
    width: 50%;
  }
}
.references .reference .reference-image > .reference-image-before-container {
  width: 50%;
  position: relative;
}
.references .reference .reference-image > .reference-image-before-container > .reference-image-before {
  width: 100%;
  border-right: 1px solid #F3A946;
}
.references .reference .reference-image > .reference-image-before-container::after {
  content: "Vorher";
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  display: inline-block;
  background-color: #8A2C35;
  color: #FFFFFF;
}
.references .reference .reference-image > .reference-image-after-container {
  width: 50%;
  position: relative;
}
.references .reference .reference-image > .reference-image-after-container > .reference-image-after {
  border-left: 1px solid #F3A946;
  width: 100%;
}
.references .reference .reference-image > .reference-image-after-container::after {
  content: "Nachher";
  position: absolute;
  top: 0;
  left: 1px;
  font-size: 1rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  display: inline-block;
  background-color: #1E7533;
  color: #FFFFFF;
}
.references .reference .reference-info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}
@media screen and (min-width: 992px) {
  .references .reference .reference-info {
    flex-direction: column;
    width: 50%;
  }
}
@media screen and (max-width: 576px) {
  .references .reference .reference-info > ul {
    width: 100%;
  }
}
.references .reference .reference-info > ul > li {
  margin-bottom: 1rem;
}
@media screen and (max-width: 576px) {
  .references .reference .reference-info > a {
    margin-right: 2rem;
  }
}
@media screen and (min-width: 576px) {
  .references .reference .reference-info > a {
    float: right;
  }
}

/**
    LINKS
**/
@media screen and (min-width: 576px) {
  .links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}
.links .link.card {
  width: 100%;
  margin-bottom: 2rem;
}
@media screen and (min-width: 576px) {
  .links .link.card {
    width: 45%;
  }
}
@media screen and (min-width: 992px) {
  .links .link.card {
    width: 32%;
  }
}
.links .link.card .card-header {
  margin-bottom: 0.5rem;
  background-color: #1A181D;
  color: #FFFFFF;
}
.links .link.card .card-body .card-text {
  margin-bottom: 1.5rem;
}

/**
    CONTACT
**/
.contact .contact-type {
  margin-bottom: 3rem;
}
.contact .contact-type .contact-subtype {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}
.contact .contact-type .contact-subtype:not(:last-of-type) {
  padding-bottom: 1rem;
}
@media screen and (min-width: 576px) {
  .contact .contact-type .contact-subtype {
    flex-flow: row;
    justify-content: flex-start;
  }
}
.contact .contact-type .contact-subtype a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #F3A946;
}
@media screen and (min-width: 576px) {
  .contact .contact-type .contact-subtype a {
    flex-direction: row;
  }
}

@media screen and (min-width: 576px) {
  .ml-s-1r {
    margin-left: 1rem;
  }
}

/**
    IMPRESSUM
**/
.impressum .impressum-entry:not(:last-of-type) {
  margin-bottom: 2rem;
}
.impressum .impressum-entry > p {
  font-size: 1rem;
}
@media screen and (min-width: 576px) {
  .impressum .impressum-entry > p {
    font-size: 1.3rem;
  }
}