.mufy-hub-nav {
  position: relative;
  margin: 12px 0 18px;
  font-family: inherit;
  z-index: 40;
}

.mufy-hub-bar {
  display: flex;
  align-items: stretch;
  gap: 4px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 8px;
}

.mufy-hub-group {
  position: relative;
  display: flex;
}

.mufy-hub-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  color: #1f3a52;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.mufy-hub-tab:hover {
  color: #ea580c;
  background: #f8fafc;
}

.mufy-hub-tab.is-active {
  color: #1f3a52;
  border-bottom-color: #ea580c;
  background: #f8fafc;
}

.mufy-hub-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* Zweispaltiges Menü */
.mufy-mega-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 720px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  z-index: 60;
}

.mufy-hub-group.is-open > .mufy-mega-panel {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.mufy-mega-cats {
  background: #f4f6f8;
  border-right: 1px solid #e2e8f0;
  padding: 6px 0;
}

.mufy-mega-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 16px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #1f3a52;
  font-size: 0.89rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.mufy-mega-cat-btn:hover {
  background: #e9eff4;
}

.mufy-mega-cat-btn.is-selected {
  background: #e3edf5;
  border-left-color: #ea580c;
  color: #1f3a52;
  font-weight: 700;
}

.mufy-mega-items-wrap {
  padding: 10px 16px;
  min-width: 0;
  max-height: 420px;
  overflow-y: auto;
}

.mufy-mega-items {
  display: none;
  flex-direction: column;
  gap: 2px;
}

.mufy-mega-items.is-active {
  display: flex;
}

.mufy-mega-link {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.89rem;
  color: #1e293b;
}

.mufy-mega-link:hover {
  background: #f4f6f8;
  color: #ea580c;
}

@media (max-width: 768px) {
  .mufy-hub-bar {
    padding: 0 4px;
    gap: 2px;
  }

  .mufy-hub-tab {
    padding: 9px 11px;
    font-size: 0.86rem;
  }

  .mufy-hub-group.is-open > .mufy-mega-panel {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    grid-template-columns: 1fr;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  }

  .mufy-mega-cats {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }
}