html, body {
  height: auto;
}
main {
  padding-top: 6rem;
}
@media (max-width: 992px) {
  main {
    padding-top: 4rem;
  }
}
@media (max-width: 320px) {
  main {
    padding-top: 5rem;
  }

}
/* ###### Header allgemein ###### */

#header {
  background-color: rgba(var(--weiss));
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  margin: 0;
}
#header > .container {
  background-color: rgba(var(--weiss));
}
@media (max-width: 991px) {
  #header > .container {
    padding: 0 1.5rem!important;
  }
}
#links {
  width: max-content;
  padding: 0;
}
@media (max-width: 992px) {
  #links {
    flex-direction: row;
    justify-content: end;
    align-items: center;
  }
  .komlinks {
    height: min-content!important;
    padding: 0!important;
  }
  .komlinks p {
    display: none;
  }
}
.komlinks p {
  opacity: 0;
}
/* Navbar ------------------------------------------ */

.navbar {
  margin: 0;
}
.navbar ul {
  margin: auto auto .5rem;
  padding: 0;
  display: flex;
  flex-flow: row wrap;
  list-style: none;
  gap: 1.5vw;
  margin-bottom: 0;
}
.navbar li {
  position: relative;
}
.navbar a,
.navbar a:focus {
  font-family: 'Montserrat';
  display: flex;
  color: rgba(var(--hauptfarbe));
  transition: 0.3s;
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
  transition: 0.3s;
  hyphens: manual!important;
}
.navbar a:last-of-type {
  padding-right: 0;
}
.navbar a:n,
.navbar a:focus {}


.navbar a i,
.navbar a:focus i {
  font-size: .8rem;
  line-height: 0;
  margin-left: .25em;
  align-self: center;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: rgba(var(--hauptfarbe), .4);
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-weight: 500;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: rgba(var(--hauptfarbe), .4);
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

/* Mobile Navigation -------------------------- */

.mobile-nav-toggle {
  color: rgba(var(--hauptfarbe));
  font-size: 2rem;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
  margin-left: .5rem;
  align-self: center;
  /* padding: 0!important; */
}
.mobile-nav-toggle span {
  font-family: 'Inter', 'Courier', sans-serif;
  font-size: 1.2rem;
  font-style: normal;
}
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
    height: 2rem;
    display: flex;
    align-items: center;
  }
  .navbar ul {
    display: none;
  }
}
.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(29, 28, 31, 0.9);
  transition: 0.3s;
  z-index: 999;
  display: flex;
}
.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  color: white;
  margin: 0;
}
.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  padding-left: 1rem;
  overflow-y: auto;
  transition: 0.3s;
}
.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px 10px 0!important;
  font-size: 15px;
  color: rgba(var(--hauptfarbe));
}
.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: rgba(var(--hauptfarbe));
}
.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 10px 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
}
.navbar-mobile .dropdown ul li {
  min-width: 200px;
}
.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}
.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}
.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a {
  color: rgba(var(--hauptfarbe));
}
.navbar-mobile .dropdown>.dropdown-active {
  display: block;
  box-shadow: none;
}
.navbar-mobile a, .navbar-mobile a:focus {
  white-space: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  letter-spacing: .05em;
}

/* Knöpfe (Header + Footer) ------------------------- */

.komlinks {
  gap: 2rem;
  margin-top: auto;
  margin-bottom: auto;
  align-content: end;
  transition: all .5s;
}
@media (max-width: 1200px) {
  .komlinks {
    gap: 1rem;
  }
}
@media (min-width: 992px) {
  .navbar {
    padding-top: 0;
  }
}
.komlinks a {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.komlinks p {
  margin: 0;
  font-size: .8rem;
}
.komlinks .knopf {
  margin: .5rem 0 -1rem;
}
@media (max-width: 992px) {
  .komlinks .knopf {
    margin: 0;
  }
}
@media (min-width: 1400px) {
  .komlinks p {
    font-size: .9rem;
  }
}
.knopf {
  background: rgba(var(--rot));
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #fff;
}

i.knopf {
  color: rgba(var(--weiss));
  font-size: 1.5rem;
}
.knopf:hover {
  background: rgba(var(--gruen), .5);
}
.knopf.active {
  opacity: 1;
}

/* .knoepfe {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  z-index: 996;
  color: white;
} */
.knoepfe {
  position: fixed;
  bottom: 1.5rem;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 1rem;
  z-index: 996;
}
@media (max-width: 768px) {
  .knoepfe {
    bottom: 24px;
    gap: .75rem;
  }
}
.knoepfe .knopf {
  height: 40px;
  width: 40px;
  font-size: 1.75rem;
}
.knoepfe a {
  margin-top: .5rem;
  position: relative;
}
.knoepfe a:hover {
  color: #fff;
}
@media (max-width: 768px) {
  .knopf {
    height: 1.75rem;
    width: 1.75rem;
  }
  i.knopf {
    font-size: 1.3rem;
  }
}
@media (max-width: 480px) {
  .knopf {
    height: 1.75rem;
    width: 1.75rem;
  }
  i.knopf {
    font-size: 1.2rem;
  }
}
@media (max-width: 360px) {
  .knopf {
    height: 1.5rem;
    width: 1.5rem;
  }
}

/* Knöpfe Ende */

#hero .carousel-indicators li {
  background-color: rgba(var(--gruen))!important;
}

details p {
  color: rgba(var(--hauptfarbe))!important;
  position: absolute;
  top: 3rem;
  left: 0;
  width: max-content;
  text-align: center;
  background: rgba(var(--weiss), .8);
  padding: .5em;
  border: thin solid rgba(var(--rot));
  border-radius: .25rem;
  z-index: 9999;
}
summary::marker,
summary::-webkit-details-marker {
  content: "";
  display: none;
}
details[open] [role=button] {
}

/* Logo ------------------------------------- */

#logo {
  order: -1;
  padding: 1rem 0;
  width: min-content;
  padding: .5rem 0;
}
#logo a {
  width: min-content;
  display: flex;
  justify-content: start;
}
#logo svg {
  height: 100%;
  max-width: 30vw;
  transition: all .5s;
  /* position: absolute; */
}
#logo a {
  position: relative;
  height: 4rem;
  transition: all .5s;
}

.logo-r {
  fill:rgba(var(--rot));
}
.logo-g {
  fill:rgba(var(--gruen));
  opacity: 1;
  transition: opacity .5s;
}
.logo-grau, .logo-claim {
  fill: rgba(var(--hauptfarbe));
}
#header #logo {
  margin-bottom: -1rem;
  transition: all .5s;
}
#header .logo-claim {
  fill: rgba(var(--hauptfarbe), 0);
  transition: fill .5s;
}

@media (max-width: 992px) {
  #logo svg {
    max-width: 45vw;
  }
}
