/* Desktop-, Seiten- und Mobilnavigation. */

@media screen and (min-width: 351px) {
  .collapsible {
    font-family: Nunito;
    font-size: 14px;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    font-weight: 700;
    background-color: rgb(193, 0, 0);
    padding: 25px 0px 10px 18px;
    text-align: left;
    width: 100%;
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: none;
    outline: none;
  }

  .content {
    height: 0px;
    font-family: Nunito;
    font-size: 13px;
    color: rgb(255, 255, 255);
    margin: -5px 0px 0px 27px;
    padding: 0px 18px;
    background-color: rgb(193, 0, 0);
  }

  .content p {
    line-height: 22px;
  }

  .content p.active > a {
    line-height: 22px;
    color: rgb(17, 17, 17);
  }

  .content a:link {
    font-family: Nunito;
    font-size: 13px;
    color: rgb(255, 255, 255);
    font-weight: 400;
    text-decoration: none;
    margin: 0px;
    padding: 0px;
    background-color: rgb(193, 0, 0);
    max-height: 0px;
    overflow: hidden;
  }

  .content a:hover {
    font-family: Nunito;
    font-size: 13px;
    color: rgb(255, 255, 255);
    font-weight: 400;
    text-decoration: none;
  }

  .content a:visited {
    font-family: Nunito;
    font-size: 13px;
    color: rgb(255, 255, 255);
    font-weight: 400;
    text-decoration: none;
  }

  .collapsible::after {
    content: "+";
    color: rgb(255, 255, 255);
    float: left;
    margin-right: 10px;
  }

  .content.active {
    height: auto;
  }
}

@media screen and (max-width: 350px) {
  .collapsible {
    font-family: Nunito;
    font-size: 12px;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    font-weight: 700;
    background-color: rgb(193, 0, 0);
    padding: 25px 0px 10px 11px;
    text-align: left;
    width: 100%;
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: none;
    outline: none;
  }

  .content {
    height: 0px;
    font-family: Nunito;
    font-size: 11px;
    color: rgb(255, 255, 255);
    margin: -5px 0px 0px 22px;
    padding: 0px 18px;
    background-color: rgb(193, 0, 0);
  }

  .content p {
    line-height: 22px;
  }

  .content p.active > a {
    line-height: 22px;
    color: rgb(17, 17, 17);
  }

  .content a:link {
    font-family: Nunito;
    font-size: 11px;
    color: rgb(255, 255, 255);
    font-weight: 400;
    text-decoration: none;
    margin: 0px;
    padding: 0px;
    background-color: rgb(193, 0, 0);
    max-height: 0px;
    overflow: hidden;
  }

  .content a:hover {
    font-family: Nunito;
    font-size: 11px;
    color: rgb(255, 255, 255);
    font-weight: 400;
    text-decoration: none;
  }

  .content a:visited {
    font-family: Nunito;
    font-size: 11px;
    color: rgb(255, 255, 255);
    font-weight: 400;
    text-decoration: none;
  }

  .collapsible::after {
    content: "+";
    color: rgb(255, 255, 255);
    float: left;
    margin-right: 10px;
  }

  .content.active {
    height: auto;
  }
}

@media screen and (min-width: 990px) {
  #mobilenav {
    display: none;
  }

  #menu-top {
    font-family: Nunito;
    height: 100px;
    vertical-align: bottom;
    padding-right: 10px;
  }
}

@media print {
  #mobilenav {
    display: none;
  }

  #menu-top {
    font-family: Nunito;
    height: 80px;
    vertical-align: bottom;
  }
}

#menu1 {
  width: 750px;
}

#menu1 a {
  font-family: Nunito;
  font-size: 13px;
  color: rgb(193, 0, 0);
  text-decoration: none;
  font-style: italic;
  font-weight: 300;
  display: block;
  text-align: center;
  padding: 16px 0px 19px;
  transition: padding 260ms ease;
}

#menu1 a:hover, #menu1 a:focus-visible {
  background: url("images/cube.gif") 50% 65% no-repeat;
  padding: 0px 0px 30px;
}

.current {
  font-size: 15px;
  color: rgb(193, 0, 0);
  text-align: center;
  cursor: default;
  font-style: italic;
  padding: 0px 0px 5px;
}

.trenn {
  width: 1px;
  color: rgb(192, 203, 103);
  padding: 2px 12px 9px;
}

#menu2 ul {
  font-family: Nunito;
  font-size: 16px;
  color: rgb(193, 0, 0);
  font-weight: 400;
  font-style: italic;
  margin: 3px 0px 0px -25px;
  padding: 0px;
}

#menu2 li {
  list-style-type: none;
  text-align: center;
}

#menu2 li a:link {
  color: rgb(193, 0, 0);
  display: block;
  text-decoration: none;
}

#menu2 li a:hover {
  color: rgb(193, 0, 0);
  display: block;
  text-decoration: none;
}

#menu2 li a:visited {
  color: rgb(193, 0, 0);
  display: block;
  text-decoration: none;
}

.menu2_heading {
  font-size: 27px;
  padding: 10px;
  margin-left: 25px;
  border-bottom: 3px double silver;
}

.menu2_current {
  cursor: default;
  padding: 12px 0px;
  margin-left: 25px;
  border-bottom: 1px solid silver;
  background: url("images/arrow.gif") 2% 50% no-repeat rgb(250, 240, 240);
}

.menu2_txt {
  position: relative;
  padding: 12px 0px;
  margin-left: 25px;
  border-bottom: 1px solid silver;
}

.menu2_txt::before {
  content: "";
  position: absolute;
  left: calc(2% - 0.16px);
  top: 50%;
  width: 8px;
  height: 9px;
  background: url("images/arrow.gif") center / contain no-repeat;
  opacity: 0;
  transform: translate(-6px, -50%);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.menu2_txt:hover::before, .menu2_txt:focus-visible::before {
  opacity: 1;
  transform: translate(0, -50%);
}

@media screen and (min-width: 351px) {
  #cssmenu {
    font-family: Nunito;
    font-weight: 700;
    background: rgb(193, 0, 0);
    margin: 0px;
    padding: 18px 0px 14px;
    width: auto;
    position: relative;
  }

  #cssmenu > ul > li > a {
    font-family: Nunito;
    font-size: 14px;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    font-weight: 700;
    margin: 15px 0px -7px -3px;
  }

  #cssmenu ul li ul li a {
    font-family: Nunito;
    font-size: 13px;
    text-transform: none;
    font-weight: 400;
    margin: -7px 0px 3px 25px;
  }

  #cssmenu > ul > li.activ > a {
    text-shadow: rgb(17, 17, 17) 2px 0px 10px;
  }

  #cssmenu > ul > li.activ {
    text-shadow: rgb(17, 17, 17) 2px 0px 10px;
  }

  #cssmenu #menu-button {
    font-size: 17px;
    color: rgb(255, 255, 255);
    font-weight: 700;
    display: block;
    width: 100%;
    text-align: left;
    padding-left: 0px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 350px) {
  #cssmenu {
    font-family: Nunito;
    font-weight: 700;
    background: rgb(193, 0, 0);
    margin: 0px;
    width: auto;
    position: relative;
  }

  #cssmenu > ul > li > a {
    font-family: Nunito;
    font-size: 12px;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    font-weight: 700;
    margin: 12px 0px -10px -5px;
  }

  #cssmenu ul li ul li a {
    font-family: Nunito;
    font-size: 11px;
    text-transform: none;
    font-weight: 400;
    margin: 5px 0px -7px 20px;
  }

  #cssmenu > ul > li.activ > a {
    text-shadow: rgb(17, 17, 17) 2px 0px 10px;
  }

  #cssmenu > ul > li.activ {
    text-shadow: rgb(17, 17, 17) 2px 0px 10px;
  }

  #cssmenu #menu-button {
    font-size: 14px;
    color: rgb(255, 255, 255);
    font-weight: 700;
    display: block;
    width: 100%;
    text-align: left;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-sizing: border-box;
  }
}

#cssmenu #menu-button::after {
  display: block;
  content: "";
  position: absolute;
  height: 7px;
  width: 28px;
  border-top: 2px solid rgb(255, 255, 255);
  border-bottom: 2px solid rgb(255, 255, 255);
  right: 20px;
  top: 18px;
}

#cssmenu #menu-button::before {
  display: block;
  content: "";
  position: absolute;
  height: 2px;
  width: 28px;
  border-top: 2px solid rgb(255, 255, 255);
  right: 20px;
  top: 36px;
}

.line {
  margin-top: 15px;
  border-top: 1px solid rgb(255, 255, 255);
}

#cssmenu ul {
  margin: 0px;
  padding: 0px;
  display: block;
}

#cssmenu ul li a {
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

#cssmenu ul li ul li {
  list-style: none;
}

#cssmenu > ul {
  max-height: 0px;
  overflow: hidden;
}

#cssmenu ul li a {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 20px;
}

#cssmenu ul li ul {
  color: rgb(255, 255, 255);
}

#cssmenu ul li ul li a {
  color: rgb(255, 255, 255);
}

#cssmenu ul li ul li.activ > a {
  color: rgb(17, 17, 17);
}

.content {
  max-height: 0px;
  opacity: 0;
  overflow: hidden;
}

.content.active {
  max-height: 800px;
  opacity: 1;
}

#menu-top {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  box-sizing: border-box;
}

#menu1 {
  display: grid;
  grid-template-columns: auto max-content auto max-content auto max-content auto;
  align-items: center;
  list-style: none;
  padding: 0px;
  margin: 0px;
}

#menu1 > li {
  min-width: 0px;
}

#menu1 .trenn {
  width: auto;
}

#cssmenu button:focus-visible {
  outline: white solid 2px;
  outline-offset: -3px;
}

#cssmenu a:focus-visible {
  outline: white solid 2px;
  outline-offset: -3px;
}

#cssmenu button {
  cursor: pointer;
}

/* Keine native Touch-Hervorhebung; Tastaturfokus bleibt sichtbar. */
#cssmenu {
  -webkit-tap-highlight-color: transparent;
}

#cssmenu :is(a, button):focus:not(:focus-visible) {
  outline: none;
}

#cssmenu #menu-button {
  border: 0px;
  background: transparent;
  font-family: Nunito, sans-serif;
  padding-block: 0px;
  padding-right: 55px;
  line-height: normal;
}

#cssmenu ul {
  list-style: none;
}

#cssmenu > ul.open {
  max-height: calc(100dvh - 55px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#cssmenu ul.content {
  height: auto;
  max-height: none;
  margin: -5px 0px 0px 27px;
  padding: 0px 18px;
}

#cssmenu .content li {
  margin-block: 13px;
  line-height: 22px;
}

#cssmenu .content li a {
  display: inline;
  padding: 0px;
  margin: 0px;
  font-size: 13px;
  line-height: 22px;
}

@media screen and (max-width: 989px) {
  #menu-top {
    display: none;
  }

  #mobilenav {
    border-bottom: 0px;
    position: fixed;
    z-index: 999;
    width: 100%;
    margin-left: -16px;
    top: 0px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 7px;
    visibility: visible;
    background: rgb(193, 0, 0);
    min-height: 55px;
  }

  #cssmenu {
    padding: 18px 0px 14px;
  }
}

@media screen and (max-width: 350px) {
  #cssmenu {
    padding: 19px 0px 15px;
  }

  #cssmenu ul.content {
    margin-left: 22px;
  }

  #cssmenu .content li a {
    font-size: 11px;
  }
}
