/* Top bar: catalogue login + EN | DE switch next to the search (2026-12-02). Loaded after main.css. */

.top-bar__right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
/* Fit order button + login + EN | DE + search in the half-width column (2026-12-02). */
/* The form has Bootstrap's .flex-wrap (!important): without this the button dropped below the field when logged in. */
.top-bar__right .search-bar { flex-wrap: nowrap !important; }
/* Left links take their own width, the right side (order, account, EN | DE, search) the rest. */
.top-bar .row > .col-md-6:first-child { flex: 0 0 auto; width: auto; }
.top-bar .row > .top-bar__right { flex: 1 1 0%; width: auto; min-width: 0; }
.top-bar__right form input.search-field { width: 130px; }
.top-bar__right form input.search-field:focus { width: 170px; }
@media (max-width: 1199.98px) {
  .top-bar__right form input.search-field, .top-bar__right form input.search-field:focus { width: 100px; }
  .top-bar .dscat-acct a:not(:only-child) span { display: none; } /* logged in: icons only, titles name them */
  .top-bar .col-md-6 > ul > li > a { padding-left: 6px; padding-right: 6px; } /* German links fit on one line at 992-1199px */
}
.top-bar__right form { margin-top: 0; }

/* Order button of the DS catalogue (2026-12-02): empty boxes except on catalogue pages, where the plugin fills them. */
.dscat-basket-slot:empty { display: none; }
.navbar .dscat-basket-slot--mobile:not(:empty) { margin-left: auto; }
.navbar .dscat-basket-slot--mobile:not(:empty) + .navbar-toggler { margin-left: 8px !important; }

/* EN | DE */
.lang-switch { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.top-bar .lang-switch li { display: flex; }
.top-bar .lang-switch li + li::before { content: "|"; color: rgba(255,255,255,.5); padding: 0 2px; align-self: center; font-size: 12px; }
.top-bar .lang-switch li a { padding: 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.75); }
.top-bar .lang-switch li a.is-current { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Catalogue account block (markup from the DS catalogue plugin, class dscat-acct) */
.top-bar .dscat-acct { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.top-bar .dscat-acct a { color: #fff; display: inline-flex; align-items: center; gap: 6px; padding: 12px 8px; font-size: 13px; }
.top-bar .dscat-acct a:hover { background: #fff; color: #004996; text-decoration: none; }
.top-bar .dscat-acct svg { flex: none; }
.top-bar .dscat-acct .dscat-acct__pending { color: #ffd479; font-size: 12px; padding: 0 6px; }

/* Mobile menu: the top bar is hidden below lg, so login and language sit at the end of the mobile menu. */
.mobile-nav .mobile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 16px; }
.mobile-nav .mobile-meta .dscat-acct { display: flex; gap: 8px; }
.mobile-nav .mobile-meta a { color: inherit; font-size: 15px; }
.mobile-nav .lang-switch--mobile li + li::before { content: "|"; padding: 0 6px; opacity: .5; }
.mobile-nav .lang-switch--mobile a.is-current { font-weight: 700; text-decoration: underline; }

/* Main menu (2026-12-02): with "Online-Katalog" the 7 entries no longer fit at 992-1199px ("FAQ" wrapped to a
   second line, the logo was squeezed). Less side padding there; main.css: header.main ul.nav li a { padding: 8px 15px }. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  header.main ul.nav > li > a { padding-left: 9px; padding-right: 9px; }
}
