/* ============================================================================
 * TC-NAV — Konsolidierte Header-Navigation
 * ----------------------------------------------------------------------------
 * Struktur:
 *   #tc-nav                       Sticky Top-Bar (56px)
 *     .tc-nav__inner              Max-Width-Container
 *       .tc-nav__brand            Logo-Link
 *       .tc-nav__systems          System-Dropdowns (Klick, nicht Hover)
 *         .tc-nav__sys-btn        System-Trigger-Button
 *         .tc-nav__sys-dropdown   Dropdown-Panel
 *           .tc-nav__sys-items    Links (Dashboard / Roster / Aktion / Admin)
 *           .tc-nav__sys-rules    Externe Regellinks (Separator + Links)
 *       .tc-nav__right            Rechte Seite
 *         .tc-nav__notify         Glocken-Icon (Benachrichtigungen)
 *         .tc-nav__user           User-Pill (Level + Avatar + Name)
 *           .tc-nav__user-panel   Dropdown: Name+Rang / Plattform / Admin / Abmelden
 *       .tc-nav__burger           Mobile Hamburger (≤900px)
 *
 * Mobile (≤900px):
 *   Burger → Bottom-Sheet aus #tc-nav-sheet
 *     Große Tap-Targets, System-Sektionen, User-Bereich
 *
 * Version: 1.1 (29. Mai 2026, Phase 3 — Token-Fix)
 * ============================================================================ */

/* ============================================================================
 * TOP BAR
 * ============================================================================ */

#tc-nav {
  background: linear-gradient(180deg, #1a1614 0%, #0d0b0a 100%);
  border-bottom: 2px solid var(--tc-accent, #c9a959);
  position: sticky;
  top: 0;
  z-index: var(--tc-z-sticky, 10001);
  width: 100%;
  height: 56px;
}

.tc-nav__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 20px;
  gap: 0;
  position: relative;   /* Anker für absolut-positionierte Systems-Nav */
}

/* ============================================================================
 * BRAND
 * ============================================================================ */

.tc-nav__brand {
  flex-shrink: 0;
  margin-right: 12px;
}

.tc-nav__brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.tc-nav__logo {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  transition: filter 200ms ease;
}

.tc-nav__brand a:hover .tc-nav__logo {
  filter: drop-shadow(0 2px 6px rgba(201, 169, 89, 0.45));
}

/* ============================================================================
 * SYSTEM DROPDOWNS
 * ============================================================================ */

.tc-nav__systems {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}

/* System-Trigger-Button */
.tc-nav__sys-btn {
  /* Reset */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  outline: none;
  margin: 0;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  /* Layout */
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 6px;
  white-space: nowrap;

  /* Typo */
  font-family: var(--tc-font-ui, 'Lato', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tc-text-muted, #777);

  transition:
    color 120ms ease,
    background 120ms ease,
    border-color 120ms ease;

  min-height: 36px;
  position: relative;
}

.tc-nav__sys-btn .nav-label {
  font-family: var(--tc-font-ui, 'Lato', sans-serif);
}

.tc-nav__sys-arrow {
  font-size: 0.52rem;
  opacity: 0.4;
  margin-left: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* Hover */
.tc-nav__sys-btn:hover,
.tc-nav__sys-btn:focus-visible {
  color: #e0e0e0;
  background: rgba(201, 169, 89, 0.08);
  border-color: rgba(201, 169, 89, 0.3);
}

/* Offen / Aktiv */
.tc-nav__sys-btn.is-open,
.tc-nav__sys-btn.is-active {
  color: var(--tc-accent, #c9a959);
  background: rgba(201, 169, 89, 0.08);
  border-color: rgba(201, 169, 89, 0.35);
}

.tc-nav__sys-btn.is-open .tc-nav__sys-arrow {
  transform: rotate(180deg);
  opacity: 0.7;
}

.tc-nav__sys-btn:focus-visible {
  outline: 2px solid var(--tc-accent, #c9a959);
  outline-offset: 1px;
}

/* ============================================================================
 * SYSTEM DROPDOWN-PANEL
 * ============================================================================ */

.tc-nav__sys-dropdown-wrap {
  position: relative;
  overflow: visible;   /* Dropdown darf aus der Nav herausragen */
}

.tc-nav__sys-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  background: var(--tc-bg-surface-1, #2d2d2d);
  border: 1px solid rgba(201, 169, 89, 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  padding: 6px 0;
  z-index: 10002;   /* über allem anderen */

  /* Unsichtbar / geschlossen */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    visibility 0ms 200ms;
}

.tc-nav__sys-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

/* Dropdown-Pfeil-Spitze */
.tc-nav__sys-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--tc-bg-surface-1, #2d2d2d);
  border-left: 1px solid rgba(201, 169, 89, 0.25);
  border-top: 1px solid rgba(201, 169, 89, 0.25);
}

/* Dropdown-Item */
.tc-nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--tc-text-default, #b0b0b0);
  text-decoration: none;
  font-family: var(--tc-font-ui, 'Lato', sans-serif);
  font-size: 0.88rem;
  transition: background 120ms ease, color 120ms ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  min-height: 40px;
}

.tc-nav__dropdown-item:hover,
.tc-nav__dropdown-item:focus-visible {
  background: rgba(201, 169, 89, 0.1);
  color: var(--tc-accent, #c9a959);
  outline: none;
}

.tc-nav__dropdown-item .item-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Admin-only: goldenes Label-Tag */
.tc-nav__dropdown-item.is-admin-only::after {
  content: 'Admin';
  font-size: 0.62rem;
  background: rgba(201, 169, 89, 0.2);
  color: var(--tc-accent, #c9a959);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: auto;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Seperator zwischen Nav-Links und Regellinks */
.tc-nav__dropdown-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 12px;
}

.tc-nav__dropdown-section {
  padding: 5px 16px 3px;
  font-size: 0.65rem;
  color: var(--tc-text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

/* Externe Links: leicht gedimmt + Extern-Icon */
.tc-nav__dropdown-item.is-external {
  color: var(--tc-text-muted, #888);
  font-size: 0.83rem;
}

.tc-nav__dropdown-item.is-external::after {
  content: '↗';
  font-size: 0.75rem;
  opacity: 0.5;
  margin-left: auto;
}

.tc-nav__dropdown-item.is-external:hover {
  color: var(--tc-text-default, #b0b0b0);
}

/* ============================================================================
 * RECHTE SEITE
 * ============================================================================ */

.tc-nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;   /* an den rechten Rand */
  flex-shrink: 0;
}

/* Glocken-Button */
.tc-nav__notify-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--tc-text-muted, #777);
  font-size: 1rem;
  transition: all 120ms ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.tc-nav__notify-btn:hover {
  color: #e0e0e0;
  background: rgba(201, 169, 89, 0.08);
  border-color: rgba(201, 169, 89, 0.3);
}

/* Notification-Dot */
.tc-nav__notify-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tc-danger, #f87171);
  border: 1.5px solid var(--tc-bg-canvas, #0d0b0a);
  display: none;
}

.tc-nav__notify-btn.has-notifications .tc-nav__notify-dot {
  display: block;
  animation: tcNavDotPulse 2.5s ease-in-out infinite;
}

@keyframes tcNavDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
}

/* ============================================================================
 * USER-PILL + USER-PANEL
 * ============================================================================ */

.tc-nav__user-wrap {
  position: relative;
}

.tc-nav__user-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 20, 10, 0.8), rgba(50, 35, 20, 0.6));
  border: 1px solid rgba(201, 169, 89, 0.3);
  border-radius: 22px;
  height: 40px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  padding: 0;
}

.tc-nav__user-pill:hover,
.tc-nav__user-pill.is-open {
  border-color: rgba(201, 169, 89, 0.55);
  background: linear-gradient(135deg, rgba(40, 28, 14, 0.9), rgba(60, 44, 22, 0.7));
}

.tc-nav__user-pill:focus-visible {
  outline: 2px solid var(--tc-accent, #c9a959);
  outline-offset: 2px;
}

/* Level-Sektion */
.tc-nav__level {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 10px;
  height: 100%;
  border-right: 1px solid rgba(201, 169, 89, 0.2);
}

.tc-nav__level-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.tc-nav__level-num {
  font-family: var(--tc-font-display, 'Cinzel', serif);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--tc-accent, #c9a959);
}

/* Profil-Sektion */
.tc-nav__profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 10px;
  height: 100%;
}

.tc-nav__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tc-bg-surface-1, #2a2a4a);
  border: 1.5px solid rgba(201, 169, 89, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--tc-font-display, 'Cinzel', serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tc-accent, #c9a959);
}

.tc-nav__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.tc-nav__username {
  font-family: var(--tc-font-display, 'Cinzel', serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tc-text-strong, var(--text-primary, #e8e2d9));
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-nav__user-arrow {
  font-size: 0.5rem;
  opacity: 0.4;
  margin-left: -2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.tc-nav__user-pill.is-open .tc-nav__user-arrow {
  transform: rotate(180deg);
  opacity: 0.7;
}

/* ============================================================================
 * USER-PANEL (Dropdown rechts)
 * ============================================================================ */

.tc-nav__user-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--tc-bg-surface-1, #2d2d2d);
  border: 1px solid rgba(201, 169, 89, 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  padding: 6px 0;
  z-index: 10002;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    visibility 0ms 200ms;
}

.tc-nav__user-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

/* User-Info-Header im Panel */
.tc-nav__panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tc-nav__panel-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tc-bg-surface-1, #2a2a4a);
  border: 2px solid rgba(201, 169, 89, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--tc-font-display, 'Cinzel', serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--tc-accent, #c9a959);
}

.tc-nav__panel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.tc-nav__panel-info {
  flex: 1;
  min-width: 0;
}

.tc-nav__panel-name {
  font-family: var(--tc-font-display, 'Cinzel', serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tc-text-strong, #e8e2d9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-nav__panel-rank {
  font-size: 0.72rem;
  color: var(--tc-accent, #c9a959);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Panel-Links */
.tc-nav__panel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--tc-text-default, #b0b0b0);
  text-decoration: none;
  font-family: var(--tc-font-ui, 'Lato', sans-serif);
  font-size: 0.88rem;
  transition: background 120ms ease, color 120ms ease;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  min-height: 40px;
}

.tc-nav__panel-item:hover,
.tc-nav__panel-item:focus-visible {
  background: rgba(201, 169, 89, 0.1);
  color: var(--tc-accent, #c9a959);
  outline: none;
}

.tc-nav__panel-item .item-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Danger-Variante (Abmelden) */
.tc-nav__panel-item.is-danger {
  color: var(--tc-text-muted, #888);
}

.tc-nav__panel-item.is-danger:hover {
  color: var(--tc-danger, #f87171);
  background: rgba(248, 113, 113, 0.08);
}

/* Panel-Separator */
.tc-nav__panel-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 12px;
}

/* ============================================================================
 * BURGER-BUTTON (Mobile)
 * ============================================================================ */

.tc-nav__burger {
  display: none;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  transition: all 200ms ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.tc-nav__burger:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 169, 89, 0.4);
}

.tc-nav__burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--tc-text-muted, #a0998f);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Burger → X */
.tc-nav__burger.is-open .tc-nav__burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--tc-accent, #c9a959);
}

.tc-nav__burger.is-open .tc-nav__burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.tc-nav__burger.is-open .tc-nav__burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--tc-accent, #c9a959);
}

/* ============================================================================
 * MOBILE BOTTOM-SHEET
 * ============================================================================ */

#tc-nav-overlay {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--tc-z-overlay, 9999);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

#tc-nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#tc-nav-sheet {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1e1a16 0%, #0d0b0a 100%);
  border-bottom: 2px solid var(--tc-accent, #c9a959);
  z-index: var(--tc-z-overlay, 10000);
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
  box-shadow: none;
}

#tc-nav-sheet.is-open {
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.65);
  overscroll-behavior: contain;
}

/* Sheet-Inhalt */
.tc-nav-sheet__inner {
  padding: 8px 0 24px;
}

/* Sheet-Sektion-Header */
.tc-nav-sheet__section {
  padding: 10px 20px 4px;
  font-size: 0.68rem;
  color: var(--tc-text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--tc-font-display, 'Cinzel', serif);
}

/* Sheet-Divider */
.tc-nav-sheet__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 89, 0.25), transparent);
  margin: 8px 20px;
}

/* Sheet-Link — große Tap-Targets */
.tc-nav-sheet__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  color: var(--tc-text-muted, #a0998f);
  text-decoration: none;
  font-family: var(--tc-font-display, 'Cinzel', serif);
  font-size: 1rem;
  transition: all 200ms ease;
  border-left: 3px solid transparent;
  cursor: pointer;
  border-top: none;
  border-right: none;
  border-bottom: none;
  background: transparent;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;
}

.tc-nav-sheet__link .sheet-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.tc-nav-sheet__link:hover,
.tc-nav-sheet__link:active {
  color: var(--tc-text-strong, #e8e2d9);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: rgba(201, 169, 89, 0.3);
}

.tc-nav-sheet__link.is-active {
  color: var(--tc-accent, #c9a959);
  background: rgba(201, 169, 89, 0.08);
  border-left-color: var(--tc-accent, #c9a959);
}

/* Sheet User-Bereich unten */
.tc-nav-sheet__user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid rgba(201, 169, 89, 0.12);
  margin-top: 8px;
}

.tc-nav-sheet__user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tc-bg-surface-1, #2a2a4a);
  border: 2px solid rgba(201, 169, 89, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tc-font-display, 'Cinzel', serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--tc-accent, #c9a959);
  flex-shrink: 0;
  overflow: hidden;
}

.tc-nav-sheet__user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.tc-nav-sheet__user-info {
  flex: 1;
  min-width: 0;
}

.tc-nav-sheet__user-name {
  font-family: var(--tc-font-display, 'Cinzel', serif);
  font-size: 0.95rem;
  color: var(--tc-text-strong, #e8e2d9);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-nav-sheet__user-rank {
  font-size: 0.75rem;
  color: var(--tc-accent, #c9a959);
  margin-top: 2px;
}

/* Logout-Button im Sheet */
.tc-nav-sheet__link.is-danger {
  color: var(--tc-text-muted, #888);
}

.tc-nav-sheet__link.is-danger:hover,
.tc-nav-sheet__link.is-danger:active {
  color: var(--tc-danger, #f87171);
  background: rgba(248, 113, 113, 0.08);
  border-left-color: var(--tc-danger, #f87171);
}

/* ============================================================================
 * RESPONSIVE
 * ============================================================================ */

@media (max-width: 900px) {
  .tc-nav__systems,
  .tc-nav__notify-btn,
  .tc-nav__user-wrap {
    display: none !important;
  }

  .tc-nav__burger {
    display: flex;
    margin-left: auto;
  }

  #tc-nav-overlay,
  #tc-nav-sheet {
    display: block;
  }

  .tc-nav__inner {
    padding: 0 12px;
  }
}

/* Zwischen 900px und 1100px: Nav-Labels kompakter */
@media (min-width: 901px) and (max-width: 1100px) {
  .tc-nav__sys-btn .nav-label {
    display: none;
  }

  .tc-nav__sys-btn {
    padding: 7px 10px;
    min-width: 36px;
    justify-content: center;
  }

  .tc-nav__username {
    display: none;
  }

  .tc-nav__profile {
    padding: 0 8px;
  }

  /* Bei kompakter Nav Labels weg: Zentriertes Systems-Nav kann enger sein */
  .tc-nav__systems {
    max-width: 50%;
  }
}

/* ============================================================================
 * BACKWARD COMPAT — lässt altes #top-nav koexistieren wenn noch nicht migriert
 * ============================================================================ */

/* Wenn tc-nav aktiv ist, altes top-nav ausblenden */
body.tc-nav-active #top-nav {
  display: none !important;
}
