@font-face {
    font-family: 'Courier';
    src: url('../fonts/CourierPrime-Regular.ttf') format('ttf');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
.brandbar * {
  margin: 0;
}
:root {
  --brandbarHeight: 30px;
}
@media only screen and (min-width: 800px) {
  :root {
    --brandbarHeight: 34px;
  }
}

/* NOTE: If the existing header is absolutely positioned, you will need to move it down by this css variable.  For example if you have

.header {
  position: absolute;
  top: 0;
}

it should become:

.header {
  position: absolute;
  top: var(--brandbarHeight);
} 

For https://www.media1.at/, which uses LESS Syntax, you will need to change the following properties:

.breadcrumb-navigation {
  top: calc(~"34px + var(--brandbarHeight)")
}

.hamburger {
  top: calc(~"34px + var(--brandbarHeight)")
}

.instagram-black, .instagram-white {
  top: calc(~"34px + var(--brandbarHeight)")
}

NOTE: This must use the LESS syntax as shown above, otherwise it will break the styles.


*/

.header {
  top: var(--brandbarHeight);
}

.brandbar {
  --linkMargin: 12px;
  --logoHeight: 10px;
  --backgroundColor: #ffffff;
  --hoveredBackgroundColor: #ffffff;

  height: var(--brandbarHeight);
  position: absolute;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--backgroundColor);
  transition: background-color 250ms ease-in, top 0.2s ease;
  padding: 0 12px;
  box-shadow: 0px 3px 4px -3px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media only screen and (min-width: 800px) {
  .brandbar {
    --linkMargin: 18px;
    --logoHeight: 13px;
    padding: 0 36px;
  }

  .brandbar-hovered {
    background-color: var(--hoveredBackgroundColor);
  }
}

.brandbar svg {
  height: var(--logoHeight);
  display: block;
  transition: all 250ms ease-in;
}

.brandbar__logo {
  display: flex;
  height: var(--logoHeight);
}

.brandbar__logo svg {
  height: calc(var(--logoHeight) + 2px);
  display: block;
}

.brandbar__links {
  display: flex;
  margin: 0 calc(-1 * var(--linkMargin));
  height: 100%;
  list-style: none;
}

.brandbar__link {
  height: 100%;
  display: flex;
  width: auto;
  align-items: flex-end;
  position: relative;
  padding: 10px var(--linkMargin);
}

.brandbar__link svg,
.brandbar__link svg path {
  fill: hsl(0, 0%, 40%);
}

.brandbar__link.active svg,
.brandbar__link.active svg path {
  fill: black;
}

@media only screen and (min-width: 800px) {
  .brandbar__link:hover {
    cursor: pointer;
  }
  .brandbar-hovered .brandbar__link.active svg,
  .brandbar-hovered .brandbar__link.active svg path {
    fill: white;
  }
}

.brandbar__sublinks {
  font-family: Courier;
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
  display: flex;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 0;
  transition: max-width 250ms ease-in;
  line-height: 1.1;
}

@media only screen and (min-width: 800px) {
  .brandbar__sublinks {
    font-size: 12px;
    line-height: 1.2;
  }
}

.brandbar__sublink {
  color: hsl(0, 0%, 40%);
}

@media only screen and (min-width: 800px) {
  .brandbar__sublink {
    color: #ffffff !important;
  }
}

.brandbar__sublink.active {
  color: black;
}

@media only screen and (min-width: 800px) {
  .brandbar-hovered .brandbar__sublink.active {
    color: white;
  }
}
.brandbar__sublinks.sublinks-visible {
  max-width: 143px;
}

@media only screen and (min-width: 800px) {
  .brandbar__sublinks.sublinks-visible {
    max-width: 220px;
  }
}

.brandbar__sublinks ul {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  list-style: none;
  padding-inline-start: 0;
}

.brandbar__sublinks ul a {
  margin-left: 12px;
  text-decoration-line: underline;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  /* NOTE: The following line needs to be enabled only on media1.at as you are importing custom Courier font */
  /* line-height: 0.9; */
}

@media only screen and (min-width: 800px) {
  .brandbar__sublinks a:hover {
    text-decoration-line: none;
  }
}

@media only screen and (min-width: 800px) {
  .brandbar-hovered svg,
  .brandbar-hovered svg path,
  .brandbar-hovered.brandbar__link.active svg,
  .brandbar-hovered.brandbar__link.active svg path {
    fill: #ffffff;
  }
}
