/* Tatreez application styles. Keep focus states clearly visible (spec §30). */
:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

.skip-link:focus {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1080;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #000;
}

/* Without JavaScript the collapsible navigation cannot open, so show it expanded. */
.no-js .navbar-collapse {
  display: block !important;
}

.no-js .navbar-toggler {
  display: none;
}

.admin-nav .nav-link {
  padding: 0.35rem 0.5rem;
}

.admin-nav .nav-link.active {
  font-weight: 600;
  text-decoration: underline;
}

.navbar .nav-link,
.navbar .navbar-text {
  white-space: nowrap;
}

/* Uploaded logo in the top bar (replaces the text brand). */
.brand-logo {
  display: block;
  max-height: 40px;
  max-width: 200px;
  width: auto;
  height: auto;
}

/* "? Hilfe" links next to page titles. */
.help-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
}

.help-link span {
  font-weight: 700;
}

.help-content h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.help-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.help-example {
  border-left: 4px solid var(--bs-primary);
  background: var(--bs-tertiary-bg);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

/* Keep the main bar on one line at 1200-1400 px (logo + 9 items + logout). */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-expand-xl .navbar-nav .nav-link {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .brand-logo {
    max-width: 160px;
  }
}
