@media (prefers-color-scheme: dark) {
  :root {
    --light: ;
    --dark: initial;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --dark: ;
    --light: initial;
  }
}

:root.dark {
  --light: ;
  --dark: initial;
}

:root.light {
  --dark: ;
  --light: initial;
}

.search-result-dropdown-menu {
  position: absolute;
  z-index: 100;
  display: block;
  right: 0;
  left: inherit;
  top: 100%;
  border-radius: 4px;
  margin: 6px 0 0;
  padding: 0;
  text-align: left;
  height: auto;
  background: transparent;
  border: none;
  max-width: 600px;
  min-width: 500px;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
  .search-result-dropdown-menu {
    min-width: calc(100vw - 3.75rem);
  }
}

.search-result-dataset {
  position: relative;
  border: 1px solid #939598;
  background: var(--dark, #424547) var(--light, #fff);
  box-shadow: 0px 0px 2px 0px rgba(255, 255, 255, 0.46);
  border-style: none;
  border-radius: 4px;
  overflow: auto;
  padding: 14px;
  max-height: calc(100vh - 5.25rem);
  line-height: 1.5;
}

.search-result-item {
  display: flex;
  margin-top: 0.5rem;
}

.search-result-component-header {
  color: var(--dark, #939598) var(--light, #424547);
  margin-left: 0.5em;
  margin-right: 0.5em;
  padding-top: 0.25em;
  padding-bottom: 0.25em;
}

.search-result-document-title {
  width: 33%;
  border-right: 1px solid #939598;
  color: var(--dark, #939598) var(--light, #424547);
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.5rem 0.5rem 0.5rem 0;
  text-align: right;
  position: relative;
  word-wrap: break-word;
}

.search-result-document-hit {
  flex: 1;
  font-size: 0.75rem;
  color: #939598;
}

.search-result-document-hit > a {
  color: var(--dark, #939598) var(--light, #424547);
  display: block;
  padding: 0.55rem 0.25rem 0.55rem 0.75rem;
}

.search-result-document-hit > a:hover {
  background-color: #69b538;
  color: #fff;
}

.search-result-document-hit .search-result-highlight {
  color: #fff;
  background: #69b538;
  padding: 0.1em 0.05em;
  font-weight: 500;
}

.search-result-document-hit .search-result-section-title {
  color: var(--dark, #939598) var(--light, #424547);
  font-weight: 500;
  font-size: 1.05em;
  margin-bottom: 0.25em;
}

#search-input {
  padding: 0.25em;
}

#search-input:focus {
  outline: none;
}

#search-field .filter {
  background: #fff linear-gradient(180deg, #939598 0, #939598) no-repeat 0/1px
    50%;
  border: 1px solid #939598;
  border-left: none;
  border-radius: 0 0.1em 0.1em 0;
  color: #424547;
  cursor: pointer;
  font-size: 0.875em;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  white-space: nowrap;
  overflow: hidden;
}

#search-field.has-filter > input {
  border-right: none;
  border-radius: 0.1em 0 0 0.1em;
}

/* Fixes to stop the site crumbling together on small screens */

/* setting min-width for toolbar smaller */
@media screen and (min-width: 200px) {
  .breadcrumbs
{
    display: block;
  }
}

/* stopping "mevivo benutzerhandbuch" word-wrap */
.navbar-item {
    word-wrap: unset;
}

/* keeping sidebar on left until its very small, then it collapses*/
/* setting min-width smaller */
@media screen and (min-width: 700px) {
  .nav-container {
  }
}

/* managing that light-/darkmode switch stays in line */
.navbar {
    display: flex;
    flex-direction: row;
}

/* getting rid of the burger */
.navbar-burger {
    display: none;
    width: 0;
}