:root {
  --base-font-size: clamp(1rem, 0.5rem + 0.8vw, 2rem);
  --font-size-h2: calc(var(--base-font-size) * 1.5);
}


img {
  max-width: 100%;
}

body {
  font-size: var(--base-font-size);
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: bold;
}

/* Toggler-Button Grundgröße */
.mod-menu__toggle-sub {
  --toggle-size: 1em;
  width: var(--toggle-size) !important;
  height: var(--toggle-size) !important;
  cursor: pointer;
  font-size: inherit !important;
  vertical-align: middle;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-inline-start: 0.3em;
}


/* Chevron-Icon via SVG */
.mod-menu__toggle-sub .icon-chevron-down {
  display: block !important;
  width: var(--toggle-size) !important;
  height: var(--toggle-size) !important;
  flex-shrink: 0 !important;
  background-color: var(--brand-secondary, #006633); /* ← Farbe hier */
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 330 330" xmlns="http://www.w3.org/2000/svg"><path d="M165 230a15 15 0 0 1-10.6-4.4l-150-150a15 15 0 1 1 21.2-21.2L165 194.8l139.4-139.4a15 15 0 1 1 21.2 21.2l-150 150A15 15 0 0 1 165 230z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 330 330" xmlns="http://www.w3.org/2000/svg"><path d="M165 230a15 15 0 0 1-10.6-4.4l-150-150a15 15 0 1 1 21.2-21.2L165 194.8l139.4-139.4a15 15 0 1 1 21.2 21.2l-150 150A15 15 0 0 1 165 230z"/></svg>');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  transition: transform 0.75s ease !important;
  background-image: none !important;
  color: transparent !important;
}

/* Pfeil dreht sich wenn Submenü offen */
.mod-menu__toggle-sub[aria-expanded="true"] .icon-chevron-down {
  transform: rotate(180deg);
}

.mod-menu__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s ease;
  display: block !important;
}

.mod-menu__sub[aria-hidden="false"] {
  max-height: 25em;
}


#triangleContainer {
  position: absolute;
  top: 0px;
  left: 0px;
  bottom: 0px;
  /*z-index: 10000;*/
}

#stickyTopMainMenu {
  width: 100vw;
  /*margin-top: -3.5em;*/
  margin-bottom: 2em;
  position: sticky;
  z-index: 100;
  top: 0;
}

#brandTriangle {
  margin-bottom: 3em;
}
  #brandTriangle > img {
    width: 90%;
    margin: auto;
    margin-top: 2.5vh;
    margin-bottom: 2.5vh;
    max-height: 75svh;
  }

#center {
  position: absolute;
  left:0;
  right:0;
  bottom: 0;
  z-index: 100;
  cursor: pointer;
  width: 100vw;
  border-left: 50vw solid;
  border-right: 50vw solid;
  border-top: 12.5svh solid;
}

footer {
  clear: both;
}

.footerMenu {
  float: right;
}
  .footerMenu > li {
    list-style-type: none;
  }
    .footerMenu > li > a {
      padding-top: 0.1rem;
      padding-bottom: 0.1rem;
      padding-left: 0em;
      float: right;
    }

/* Smartphones */
@media only screen and (width < 1400px) {

  #footerMenu {
    display: block;
    text-align: center;
    margin-bottom: 0.5em;
  }
  #footerMenu > li {}
  #footerMenu > li > a {
    float: none;
  }
}

/* everything without toggled menu */
@media only screen and (width >= 1400px) {

  #mainMenu {
    margin: auto;
  }
  #mainMenu > li {
    padding: 0 0.5em;
  }



  #footerMenu {
    display: block;
    text-align: center;
    margin-bottom: 0.5em;
  }
    #footerMenu > li {}
      #footerMenu > li > a {
        float: none;
      }

}

/* Tablets */
@media only screen and (min-width: 768px) and (max-width: 1919px) {

}


/* Full HD */
@media only screen and (min-width: 1920px) and (max-width: 3839px){

}
/* 4K */
@media only screen and (min-width: 3840px) {

}
