:root {
  --anime-time: 15s;
}

header .logo-container {
  margin-top: -1.75rem;
  margin-bottom: -1.25rem;
  margin-bottom: -2.25rem;

  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  z-index: 1;
}

header .logo-container img {
  transition: transform 0.2s ease;
  margin-top: 2rem;
  max-width: 140px;
}

header .logo-container img:hover {
  transform: scale(1.15);
}

header {
  position: relative;
}

header .fire-image {
  position: absolute;
  top: 0;

  left: 50%;
  right: 50%;
  transform: translateX(-50%);

  width: 220px;
  max-width: 220px;

  z-index: -1;

  pointer-events: none;
}

header .fire-image img {
  max-width: 220px;
}

#header-wrapper {
  position: sticky;
  top: calc(var(--admin-bar, 0) - 3.25rem);
  top: calc(var(--admin-bar, 0) - 3.5rem);
  top: var(--admin-bar);

  z-index: 999;

  background-color: var(--dark);
}

#header-wrapper .header-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Overlay */

#sm-overlay {
  display: block;
  position: fixed;
  left: 0;
  top: calc(var(--admin-bar, 0) + 164px - 3.25rem);
  width: 100%;
  height: calc(100lvh - 164px + var(--admin-bar, 0));
  overflow: auto;
  background-color: var(--dark);
  z-index: 998;

  max-width: 100vw;
  overflow-y: scroll;
  scrollbar-width: none;
  padding: 0;
  margin: 0;
}

#sm-overlay::-webkit-scrollbar {
  display: none;
}

#sm-overlay {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease 0s, visibility 0s linear 0.3s;
}

.open #sm-overlay {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease 0.2s, visibility 0s linear 0s;
}

/* */

#main-menu-2 li {
  font-weight: 500;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0rem;

  line-height: 1em;
  font-family: "kaarna";

  list-style-type: none;
  padding-left: 0;
  display: inline-block;
  margin-right: 1rem;
  margin-right: 1rem;

  font-size: 1.5rem;
}

#main-menu-2 {
  flex-wrap: wrap;
  display: none;
}

/* Styling für das Hauptmenü */
#main-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;

  padding-top: 4rem;
  padding-bottom: 4rem;

  --f-size: 3.5rem;
}

#main-menu > li {
  display: block;
  position: relative;
  font-weight: bold;
  color: white;

  text-transform: uppercase;
  letter-spacing: 1px;

  margin-bottom: 0rem;
  margin-bottom: 1rem;
  line-height: 1em;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-family: "kaarna";
}

#main-menu > li.menu-item-has-children {
  margin-top: 1.2rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
}

#main-menu > li.menu-item-has-children > a {
  margin-bottom: 1.25rem;
}

/* Hauptmenü-Link-Styling */

#main-menu > li > a {
  color: white;
  text-decoration: none;
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 1.5rem 1rem;

  font-weight: 500;
  font-size: var(--f-size);
}

/* Submenü */
#main-menu > li > ul.sub-menu {
  display: block;
  padding: 0;
  list-style: none;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

#main-menu .current-menu-item > a {
  text-decoration: underline;
  padding-bottom: 1.5rem;
}

#main-menu > li > ul.sub-menu > li {
  display: inline-block;
  font-weight: 500;
  font-size: calc(var(--f-size) / 1.75);
}

/* Submenü-Link-Styling */
#main-menu > li > ul.sub-menu > li > a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
}

/* Hover-Effekte */
#main-menu > li > a:hover,
#main-menu > li > ul.sub-menu > li > a:hover {
  background-color: var(--light);
  color: var(--dark);
}

/* Aktueller Menüpunkt */
#main-menu li.current-menu-item > a {
  background-color: var(--light);
  color: var(--dark);
}

/* Burger */

.burger svg {
  --cta-element: 65px;
  z-index: 2;
  position: relative;
}

.burger svg:hover .line,
.open .burger svg .line {
  stroke: var(--light);
}

.burger {
  --stroke-w: 6px;
  cursor: pointer;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: all 0.5s ease;
  margin-right: -0.5rem;
}

.burger:focus,
.burger:hover {
  outline: 0;
  border-radius: 0;
  opacity: 0.6;
}

.burger svg {
  width: var(--cta-element);
  height: var(--cta-element);
}

.burger .line {
  fill: none;
  stroke: var(--e-global-color-primary);
  stroke-width: var(--stroke-w);
  -webkit-transition: stroke-dasharray 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.2s;
  -o-transition: stroke-dasharray 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.2s;
  transition: stroke-dasharray 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.2s ease;
}

.burger .line1 {
  stroke: var(--light);
  stroke-dasharray: 60 207;
  stroke-width: var(--stroke-w);
}

.burger .line2 {
  stroke: var(--light);
  stroke-dasharray: 60 60;
  stroke-width: var(--stroke-w);
}

.burger .line3 {
  stroke: var(--light);
  stroke-dasharray: 60 207;
  stroke-width: var(--stroke-w);
}

.open .burger .line1 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: var(--stroke-w);
}

.open .burger .line2 {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
  stroke-width: var(--stroke-w);
}

.open .burger .line3 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: var(--stroke-w);
}

/* 
.top-bar {
  padding: 1rem;
}

.scrolling-text-container {
  width: 100%;
  overflow: hidden;
  padding: 1.75rem 0;
  padding: .5rem 0;
  box-sizing: border-box;
}


.scrolling-text {
  display: flex;
  width: 200vw;
  gap: 2rem;
  white-space: nowrap;
  animation: scroll-left var(--anime-time) linear infinite;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-evenly;

}

.scrolling-text svg {
  min-width: 36px;
  min-width: 22px;
}

.scrolling-text span {
  color: var(--white);

  font-size: 2rem;
  font-size: 1.5rem;
  line-height: 2.25rem;
  line-height: 1.25rem;
  font-family: var(--f-family);
  text-transform: uppercase;
  letter-spacing: 1px;

}

/*
.scrolling-text span:nth-child(2n) {
    color: var(--secondary);
}


.scrolling-text span:nth-child(3n) {
    color: var(--accent);
}*/

@keyframes scroll-left {
  from {
    transform: translateX(-100vw);
  }

  to {
    transform: translateX(0vw);
  }
}

/* Medium devices (tablets/desktops, 768px and up) */
@media only screen and (min-width: 768px) {
  :root {
    --anime-time: 60s;
  }

  header .logo-container img {
    max-width: unset;
  }

  #main-menu-2 {
    display: flex;
  }
}

#list-count {
  transition: all 0.2s ease;
}

#list-count.added {
  transform: scale(1.2);
}

#list-count.added path {
  transition: all 0.2s ease;
  fill: red;
}
