/* Fix DRF Template Changes */

/* Correct rem proportion */
html {
  font-size: 100%;
}

/* Reset for navbar */
.navbar {
  position: unset !important;
}

img {
  vertical-align: unset;
}

.wrapper {
  position: unset;
  padding-top: unset;
  margin: unset;
  min-height: unset;
}

header a {
  text-decoration: none;
  color: var(--darkgray);
}

header a:hover {
  text-decoration: none;
}

@font-face {
  font-family: "FlexoBold";
  src: url("../fonts/Flexo/Flexo-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "FlexoMedium";
  src: url("../fonts/Flexo/Flexo-Medium.woff2") format("woff2");
}

header {
  --bawblue: #2c63b1;
  --darkblue: #00447a;
  --darkblue2: #003d6e;
  --darkblue3: #003662;
  --turquoise: #00a8b8;
  --lightblue5: #39738e;
  --white: #fff;
  --black: #000;
  --lightgray: #f4f4f4;
  --gray: #c7c7c7;
  --middlegray: #878787;
  --darkgray: #4f4f4f;
  --normal-width: calc(100% - 30px);
  --max-with: 74em;

  /* Disable browser specific rendering */
  color: var(--darkgray);
  font-family: "FlexoMedium", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;

  /* To avoid caro background from DRF */
  background-color: white;
}

/* 850px is the breakpoint between the two screen sizes */
@media screen and (max-width: 850px) {
  header {
    --max-with: 100%;
  }
}

/* HEADER */

/* Header responsive */

/* Menu */
#head-responsive {
  z-index: 1003;
  display: block;
  padding-top: 50px;
}

#head-responsive #menu {
  z-index: 1004;
  height: 50px;
  width: 100%;
  background-color: var(--lightgray);
  position: fixed;
  top: 0;
}

#head-responsive .menu-wrapper {
  height: 100%;
}

#head-responsive #burger-menu-icon {
  height: 33px;
}

/* Logo */
#head-responsive .wrapper {
  max-width: var(--max-with);
  width: calc(100% - 30px);
  margin: 0 auto;
}

#head-responsive .logo {
  height: 3.75rem;
  margin: 15px 0;
}

#head {
  display: none;
}

nav {
  display: none;
}

/* Responsive Menu Open/Close */
#head-responsive #menu-content {
  display: none;
}

#head-responsive #menu-content.open {
  display: block;
  position: fixed;
  background-color: var(--lightgray);
  top: 50px;
  width: 100vw;
}

#menu-content a {
  padding: 15px 10px;
}

/* Header web-screen */
@media only screen and (min-width: 850px) {
  #head {
    height: 130px;
    margin: 0 auto;
    padding: 15px 0;
    max-width: var(--max-with);
    width: calc(100% - 30px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  #head>div {
    display: flex;
    align-items: flex-end;
  }

  #fernbin-logo {
    max-width: 100px;
  }

  #baw-logo {
    height: 80px;
  }

  .service-of-baw {
    color: var(--bawblue);

    /* color: var(--bawblue); */
    font-weight: normal;
    font-size: 1rem;
  }

  #head-responsive {
    display: none;
  }

  /* NAVIGATION */
  nav {
    z-index: 1002;
    display: block;
    color: var(--darkgray) !important;
    background-color: var(--lightgray);
    height: 50px;
  }

  .nav-wrapper {
    max-width: var(--max-with);
    width: calc(100% - 30px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-wrapper {
    display: flex;
    align-items: center;
  }

  .menu-wrapper.left>a {
    padding: 15px 15px;
  }

  .menu-wrapper.left>span {
    padding-right: 15px;
  }

  .menu-wrapper.right>a {
    padding: 15px 15px;
  }

  .menu-wrapper.left>a:hover,
  .menu-wrapper.right>a.menu-link:hover {
    background: var(--bawblue);
    color: var(--white);
    text-decoration: none !important;
  }

  .menu-link {
    font-weight: bold;
    color: var(--darkgray);
    text-decoration: none;
  }

  .menu-link-inactive {
    font-weight: bold;
    color: var(--middlegray);
    text-decoration: none;
  }

  .profil-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
  }
}

/* NAVIGATION */

/* Input */
.search-input {
  padding: 4px;
  border-radius: 6px;
  border-style: solid;
  border-color: var(--lightgray);
  width: 192px;

  /* Reset from DRF */
  font: unset;
  margin: unset;
  height: 30px;
  color: var(--darkgray);
}

@media screen and (min-width: 850px) {
  .search-input {
    max-width: 250px !important;
  }
}

.search-input:focus {
  outline-color: var(--bawblue);
}

/* SONSTIGES */
.pointer {
  cursor: pointer;
}

.align-center {
  align-items: center;
  width: 100vw;
}

.flex {
  display: flex;
}

.padding-left-16 {
  padding-left: 16px;
}

.direction-column {
  flex-direction: column;
}

/* Responsive */
.burgern-menu:hover {
  background: var(--bawblue);
  color: var(--white);
}

.menu-link-inactive {
  color: var(--middlegray);
}

.burgern-menu-inner>a:hover:not(.menu-link-inactive) {
  background: var(--bawblue);
  color: var(--white);
}

.menu-link-inactive:hover {
  color: var(--middlegray);
}
